Extract a dwm profile module

I've made this a module as it imports configuration from `st` and
potentially others as I continue to refactor.
This commit is contained in:
Oliver Davies 2025-04-05 09:00:00 +01:00
parent 98dccf63f0
commit ee9c85f920
10 changed files with 52 additions and 80 deletions

View file

@ -1,7 +1,6 @@
{
imports = [
./discord.nix
./dwm
./flameshot.nix
./gtk.nix
./media

View file

@ -1,28 +0,0 @@
{
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
];
};
};
}

View file

@ -1,5 +0,0 @@
systemctl --user import-environment DISPLAY
poweralertd -s &
setbg &
systemctl --user start dwm-status &
exec dwm