dwm: couple home settings to nixos module
parent
95a157089d
commit
2824dea9e3
|
@ -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) ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 New Issue