Move home-manager related files into home directory

This commit is contained in:
Oystein Kristoffer Tveit 2022-08-19 01:54:13 +02:00
parent 56a100f0c6
commit 8f68ada082
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
50 changed files with 8 additions and 11 deletions

View File

@ -98,7 +98,7 @@
stateVersion = "22.05"; stateVersion = "22.05";
configuration = { configuration = {
imports = [ imports = [
./home.nix ./home/home.nix
./modules ./modules
]; ];

View File

@ -19,7 +19,7 @@ in {
./programs/tmux.nix ./programs/tmux.nix
./programs/zsh ./programs/zsh
./modules ../modules
inputs.secrets.outputs.nixosModule inputs.secrets.outputs.nixosModule
] ++ optionals graphics [ ] ++ optionals graphics [
@ -38,6 +38,7 @@ in {
./services/dunst.nix ./services/dunst.nix
./services/mpd.nix ./services/mpd.nix
./services/picom.nix ./services/picom.nix
./services/polybar.nix
./services/stalonetray.nix ./services/stalonetray.nix
./services/sxhkd.nix ./services/sxhkd.nix
]; ];

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1,17 +1,13 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
services.sxhkd = { services.sxhkd = {
enable = true; enable = true;
keybindings = { keybindings = {
# make sxhkd reload its configuration files: # make sxhkd reload its configuration files:
"super + Escape" = "pkill -USR1 -x sxhkd && ${pkgs.libnotify}/bin/notify-send -t 3000 \"sxhkd configuration reloaded\""; "super + Escape" = "pkill -USR1 -x sxhkd && ${pkgs.libnotify}/bin/notify-send -t 3000 \"sxhkd configuration reloaded\"";
# Applications # Applications
"super + w" = "${pkgs.emacs}/bin/emacs";
"super + e" = "$FILEBROWSER";
"super + s" = "$BROWSER"; "super + s" = "$BROWSER";
"super + r" = "${pkgs.rofi}/bin/rofi -show drun"; "super + r" = "${pkgs.rofi}/bin/rofi -show drun";
@ -54,7 +50,7 @@
# fcitx5 # fcitx5
# "super + {b,n,m}" = "${pkgs.fcitx5}/bin/fcitx5-remote -s {mozc,keyboard-no,keyboard-us}"; # "super + {b,n,m}" = "${pkgs.fcitx5}/bin/fcitx5-remote -s {mozc,keyboard-no,keyboard-us}";
# TODO: fix # TODO: fix
# "super + v" = "${pkgs.rofi}/bin/rofi -modi lpass:$HOME/.scripts/rofi/lpass/rofi-lpass -show lpass"; # "super + v" = "${pkgs.rofi}/bin/rofi -modi lpass:$HOME/.scripts/rofi/lpass/rofi-lpass -show lpass";
"super + minus" = "${pkgs.xcalib}/bin/xcalib -invert -alter"; "super + minus" = "${pkgs.xcalib}/bin/xcalib -invert -alter";
@ -74,6 +70,6 @@
# é # é
"super + shift + e" = "sleep 0.3; ${pkgs.xdotool}/bin/xdotool key U00E9"; "super + shift + e" = "sleep 0.3; ${pkgs.xdotool}/bin/xdotool key U00E9";
}; };
}; };
} }

View File

@ -203,7 +203,7 @@ in {
extraSpecialArgs = { inherit inputs; inherit secrets; }; extraSpecialArgs = { inherit inputs; inherit secrets; };
# TODO: figure out why specialArgs isn't accessible from the root home file. # TODO: figure out why specialArgs isn't accessible from the root home file.
users.h7x4 = import ../home.nix { users.h7x4 = import ../home/home.nix {
inherit pkgs; inherit pkgs;
inherit inputs; inherit inputs;
inherit config; inherit config;