Move Nix files back to the root of the project
This commit is contained in:
parent
52044d9995
commit
087153a16d
223 changed files with 12 additions and 12 deletions
38
modules/home-manager/desktop/dwm.nix
Normal file
38
modules/home-manager/desktop/dwm.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.homeManagerModules.dwm.enable = mkEnableOption "Enable dwm";
|
||||
|
||||
config = mkIf config.homeManagerModules.dwm.enable {
|
||||
home = {
|
||||
file."${config.home.sessionVariables.XINITRC}".text = ''
|
||||
systemctl --user import-environment DISPLAY
|
||||
|
||||
poweralertd -s &
|
||||
|
||||
setbg &
|
||||
|
||||
systemctl --user start dwm-status &
|
||||
|
||||
exec dwm
|
||||
'';
|
||||
|
||||
sessionVariables = {
|
||||
XINITRC = "${config.xdg.configHome}/X11/xinitrc";
|
||||
};
|
||||
|
||||
packages = with pkgs; [
|
||||
dunst
|
||||
poweralertd
|
||||
xwallpaper
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue