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:
parent
98dccf63f0
commit
ee9c85f920
10 changed files with 52 additions and 80 deletions
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./discord.nix
|
||||
./dwm
|
||||
./flameshot.nix
|
||||
./gtk.nix
|
||||
./media
|
||||
|
|
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
systemctl --user import-environment DISPLAY
|
||||
poweralertd -s &
|
||||
setbg &
|
||||
systemctl --user start dwm-status &
|
||||
exec dwm
|
Loading…
Add table
Add a link
Reference in a new issue