Extract .xinitrc
into a separate file
This commit is contained in:
parent
01ffef86cd
commit
f0b37c1813
3 changed files with 7 additions and 12 deletions
28
modules/home-manager/desktop/dwm/default.nix
Normal file
28
modules/home-manager/desktop/dwm/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.homeManagerModules.dwm.enable = mkEnableOption "Enable dwm";
|
||||
|
||||
config = mkIf config.homeManagerModules.dwm.enable {
|
||||
home = {
|
||||
file."${config.home.sessionVariables.XINITRC}".source = ./xinitrc;
|
||||
|
||||
sessionVariables = {
|
||||
XINITRC = "${config.xdg.configHome}/X11/xinitrc";
|
||||
};
|
||||
|
||||
packages = with pkgs; [
|
||||
dunst
|
||||
poweralertd
|
||||
xwallpaper
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue