Compare commits

..

No commits in common. "7b6e53ea99529a5e93731e1e7413029c7f9c997e" and "c993639066831ef755b86037738feddd81425c45" have entirely different histories.

16 changed files with 39 additions and 59 deletions

View file

@ -7,6 +7,7 @@
imports = [ imports = [
./programs/neovim/. ./programs/neovim/.
./programs/git.nix ./programs/git.nix
./programs/lf/.
./programs/zsh.nix ./programs/zsh.nix
./programs/tmux/. ./programs/tmux/.
]; ];
@ -39,8 +40,6 @@
ytfzf ytfzf
]; ];
programs.yazi.enable = true;
programs.zoxide.enable = true; programs.zoxide.enable = true;
programs.rbw = { programs.rbw = {
@ -66,7 +65,10 @@
}; };
}; };
programs.fzf.enable = true; programs.fzf = {
enable = true;
enableZshIntegration = true;
};
programs.direnv.enable = true; programs.direnv.enable = true;
} }

View file

@ -136,9 +136,6 @@
"XF86AudioMute".action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"]; "XF86AudioMute".action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"];
"XF86AudioMicMute".action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "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%"]; "XF86MonBrightnessUp".action.spawn = ["brightness" "+10%"];
"XF86MonBrightnessDown".action.spawn = ["brightness" "10%-"]; "XF86MonBrightnessDown".action.spawn = ["brightness" "10%-"];

View file

@ -42,8 +42,8 @@
on-click = "${pkgs.pavucontrol}/bin/pavucontrol"; on-click = "${pkgs.pavucontrol}/bin/pavucontrol";
}; };
mpris = { mpris = {
format = "{player_icon} {title}"; format = "{player_icon} {dynamic}";
format-paused = " {player_icon} {title}"; format-paused = " {player_icon} {dynamic}";
player-icons = { player-icons = {
default = ""; default = "";
mpd = "🎵"; mpd = "🎵";

View file

@ -1,6 +1,7 @@
{ {
pkgs, pkgs,
inputs, inputs,
user,
... ...
}: { }: {
imports = [ imports = [
@ -25,7 +26,6 @@
youtube-music youtube-music
transmission_4-gtk transmission_4-gtk
feishin feishin
grayjay
# other # other
element-desktop element-desktop
@ -68,12 +68,8 @@
]; ];
}; };
programs.zed-editor = { programs.chromium = {
enable = true; enable = true;
extensions = ["tsgo" "nix" "ansible" "helm"]; package = pkgs.brave;
userSettings = {
vim_mode = true;
};
extraPackages = [pkgs.nixd pkgs.vtsls];
}; };
} }

View file

@ -3,7 +3,6 @@
config, config,
... ...
}: { }: {
home.shell.enableZshIntegration = true;
programs.starship.enable = true; programs.starship.enable = true;
programs.zsh = { programs.zsh = {
enable = true; enable = true;

BIN
images/demonslayer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

BIN
images/nier.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

BIN
images/nier2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

BIN
images/nix-soft.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 840 KiB

View file

@ -20,7 +20,6 @@ in
++ [ ++ [
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
../nixos/modules/predicate.nix
{ {
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;

View file

@ -28,7 +28,6 @@ in {
scrolloff = 4; scrolloff = 4;
smoothscroll = true; smoothscroll = true;
ignorecase = true; ignorecase = true;
winborder = "rounded";
undofile = true; undofile = true;
undodir = lua ''vim.fn.expand("$HOME/.local/share/nvim/undo")''; undodir = lua ''vim.fn.expand("$HOME/.local/share/nvim/undo")'';
@ -73,10 +72,10 @@ in {
options.desc = "copy to clipboard"; options.desc = "copy to clipboard";
} }
{ {
mode = "n"; key = "<leader>ca";
options.desc = "LSP Format"; action = ''
key = "<leader>cf"; require("actions-preview").code_actions
action = luaFunc "vim.lsp.buf.format({async = true;})"; '';
} }
{ {
key = "<C-Tab>"; key = "<C-Tab>";
@ -284,6 +283,9 @@ in {
inlayHints = true; inlayHints = true;
servers = { servers = {
ts_ls.enable = true; ts_ls.enable = true;
eslint = {
enable = true;
};
nixd = { nixd = {
enable = true; enable = true;
settings = { settings = {

View file

@ -1,16 +0,0 @@
{
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;
};
}

View file

@ -6,7 +6,8 @@
}: let }: let
user = config.user; user = config.user;
in { in {
allowUnfreePkgNames = [ nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# nonfree vscode required for dev containers # nonfree vscode required for dev containers
"vscode" "vscode"
"steam-run" "steam-run"

View file

@ -1,5 +1,10 @@
{...}: { {
allowUnfreePkgNames = [ lib,
pkgs,
...
}: {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam" "steam"
"steam-unwrapped" "steam-unwrapped"
"steam-run" "steam-run"

View file

@ -1,11 +1,10 @@
{pkgs, ...}: { {
users.groups.media = {}; users.groups.media = {};
services.jellyfin = { services.jellyfin = {
enable = true; enable = true;
group = "media"; # access to user stuff group = "media"; # access to user stuff
openFirewall = true; openFirewall = true;
}; };
environment.variables.JELLYFIN_FFMPEG = "${pkgs.jellyfin-ffmpeg}/bin/ffmpeg";
services.nginx.virtualHosts."movies.tristans.cloud" = { services.nginx.virtualHosts."movies.tristans.cloud" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;

View file

@ -102,8 +102,4 @@
services.udev.extraRules = '' services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="0e60", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="0e60", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
''; '';
allowUnfreePkgNames = [
"grayjay"
];
} }