dwm: couple home settings to nixos module
This commit is contained in:
parent
95a157089d
commit
2824dea9e3
3 changed files with 20 additions and 4 deletions
|
@ -48,10 +48,6 @@
|
|||
homeNetwork = true;
|
||||
};
|
||||
|
||||
# WM Stuff
|
||||
xsession.numlock.enable = true;
|
||||
services.unclutter.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
ripgrep
|
||||
unzip
|
||||
|
|
|
@ -56,5 +56,7 @@ in
|
|||
dmenu
|
||||
xclip
|
||||
];
|
||||
|
||||
home-manager.sharedModules = [ (import ./home/dwm.nix) ];
|
||||
};
|
||||
}
|
||||
|
|
18
modules/home/dwm.nix
Normal file
18
modules/home/dwm.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.snowhawk.dwm;
|
||||
in
|
||||
{
|
||||
options.snowhawk.dwm = {
|
||||
enable = mkEnableOption "niri home-manager module";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# WM Stuff
|
||||
xsession.numlock.enable = true;
|
||||
services.unclutter.enable = true;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue