dwm: couple home settings to nixos module

sh-initrd-on-root
Zynh Ludwig 2024-10-06 07:18:46 -07:00
parent 95a157089d
commit 2824dea9e3
3 changed files with 20 additions and 4 deletions

View File

@ -48,10 +48,6 @@
homeNetwork = true; homeNetwork = true;
}; };
# WM Stuff
xsession.numlock.enable = true;
services.unclutter.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
ripgrep ripgrep
unzip unzip

View File

@ -56,5 +56,7 @@ in
dmenu dmenu
xclip xclip
]; ];
home-manager.sharedModules = [ (import ./home/dwm.nix) ];
}; };
} }

18
modules/home/dwm.nix Normal file
View 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;
};
}