Compare commits
5 commits
c993639066
...
7b6e53ea99
| Author | SHA1 | Date | |
|---|---|---|---|
| 7b6e53ea99 | |||
| 2219fb8619 | |||
| 9e40da0a9c | |||
| 60afb15309 | |||
| 5553012178 |
16 changed files with 59 additions and 39 deletions
|
|
@ -7,7 +7,6 @@
|
|||
imports = [
|
||||
./programs/neovim/.
|
||||
./programs/git.nix
|
||||
./programs/lf/.
|
||||
./programs/zsh.nix
|
||||
./programs/tmux/.
|
||||
];
|
||||
|
|
@ -40,6 +39,8 @@
|
|||
ytfzf
|
||||
];
|
||||
|
||||
programs.yazi.enable = true;
|
||||
|
||||
programs.zoxide.enable = true;
|
||||
|
||||
programs.rbw = {
|
||||
|
|
@ -65,10 +66,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
programs.fzf.enable = true;
|
||||
|
||||
programs.direnv.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -136,6 +136,9 @@
|
|||
|
||||
"XF86AudioMute".action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"];
|
||||
"XF86AudioMicMute".action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"];
|
||||
"XF86AudioNext".action.spawn = ["playerctl" "next"];
|
||||
"XF86AudioPrev".action.spawn = ["playerctl" "previous"];
|
||||
"XF86AudioPlay".action.spawn = ["playerctl" "play-pause"];
|
||||
|
||||
"XF86MonBrightnessUp".action.spawn = ["brightness" "+10%"];
|
||||
"XF86MonBrightnessDown".action.spawn = ["brightness" "10%-"];
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@
|
|||
on-click = "${pkgs.pavucontrol}/bin/pavucontrol";
|
||||
};
|
||||
mpris = {
|
||||
format = "{player_icon} {dynamic}";
|
||||
format-paused = "⏸️ {player_icon} {dynamic}";
|
||||
format = "{player_icon} {title}";
|
||||
format-paused = "⏸️ {player_icon} {title}";
|
||||
player-icons = {
|
||||
default = "▶️";
|
||||
mpd = "🎵";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
user,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
|
|
@ -26,6 +25,7 @@
|
|||
youtube-music
|
||||
transmission_4-gtk
|
||||
feishin
|
||||
grayjay
|
||||
|
||||
# other
|
||||
element-desktop
|
||||
|
|
@ -68,8 +68,12 @@
|
|||
];
|
||||
};
|
||||
|
||||
programs.chromium = {
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
package = pkgs.brave;
|
||||
extensions = ["tsgo" "nix" "ansible" "helm"];
|
||||
userSettings = {
|
||||
vim_mode = true;
|
||||
};
|
||||
extraPackages = [pkgs.nixd pkgs.vtsls];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
home.shell.enableZshIntegration = true;
|
||||
programs.starship.enable = true;
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 MiB |
BIN
images/nier.jpg
BIN
images/nier.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 MiB |
BIN
images/nier2.jpg
BIN
images/nier2.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 840 KiB |
|
|
@ -20,6 +20,7 @@ in
|
|||
++ [
|
||||
home-manager.nixosModules.home-manager
|
||||
sops-nix.nixosModules.sops
|
||||
../nixos/modules/predicate.nix
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ in {
|
|||
scrolloff = 4;
|
||||
smoothscroll = true;
|
||||
ignorecase = true;
|
||||
winborder = "rounded";
|
||||
|
||||
undofile = true;
|
||||
undodir = lua ''vim.fn.expand("$HOME/.local/share/nvim/undo")'';
|
||||
|
|
@ -72,10 +73,10 @@ in {
|
|||
options.desc = "copy to clipboard";
|
||||
}
|
||||
{
|
||||
key = "<leader>ca";
|
||||
action = ''
|
||||
require("actions-preview").code_actions
|
||||
'';
|
||||
mode = "n";
|
||||
options.desc = "LSP Format";
|
||||
key = "<leader>cf";
|
||||
action = luaFunc "vim.lsp.buf.format({async = true;})";
|
||||
}
|
||||
{
|
||||
key = "<C-Tab>";
|
||||
|
|
@ -283,9 +284,6 @@ in {
|
|||
inlayHints = true;
|
||||
servers = {
|
||||
ts_ls.enable = true;
|
||||
eslint = {
|
||||
enable = true;
|
||||
};
|
||||
nixd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
|||
16
nixos/modules/predicate.nix
Normal file
16
nixos/modules/predicate.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
allowUnfreePkgNames = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (lib.getName pkg) config.allowUnfreePkgNames;
|
||||
};
|
||||
}
|
||||
|
|
@ -6,14 +6,13 @@
|
|||
}: let
|
||||
user = config.user;
|
||||
in {
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (lib.getName pkg) [
|
||||
# nonfree vscode required for dev containers
|
||||
"vscode"
|
||||
"steam-run"
|
||||
"postman"
|
||||
"drawio" # the creator had a hissyfit over a negative review: https://github.com/jgraph/drawio/discussions/4623
|
||||
];
|
||||
allowUnfreePkgNames = [
|
||||
# nonfree vscode required for dev containers
|
||||
"vscode"
|
||||
"steam-run"
|
||||
"postman"
|
||||
"drawio" # the creator had a hissyfit over a negative review: https://github.com/jgraph/drawio/discussions/4623
|
||||
];
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"openssl-1.1.1w" # required for mongodb
|
||||
|
|
|
|||
|
|
@ -1,16 +1,11 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (lib.getName pkg) [
|
||||
"steam"
|
||||
"steam-unwrapped"
|
||||
"steam-run"
|
||||
"steam-original"
|
||||
"osu-lazer"
|
||||
];
|
||||
{...}: {
|
||||
allowUnfreePkgNames = [
|
||||
"steam"
|
||||
"steam-unwrapped"
|
||||
"steam-run"
|
||||
"steam-original"
|
||||
"osu-lazer"
|
||||
];
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
{
|
||||
{pkgs, ...}: {
|
||||
users.groups.media = {};
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
group = "media"; # access to user stuff
|
||||
openFirewall = true;
|
||||
};
|
||||
environment.variables.JELLYFIN_FFMPEG = "${pkgs.jellyfin-ffmpeg}/bin/ffmpeg";
|
||||
services.nginx.virtualHosts."movies.tristans.cloud" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
|
|
|||
|
|
@ -102,4 +102,8 @@
|
|||
services.udev.extraRules = ''
|
||||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="0e60", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
|
||||
'';
|
||||
|
||||
allowUnfreePkgNames = [
|
||||
"grayjay"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue