home/desktop: added startupApps module with initial hyprland support

This commit is contained in:
Aly Raffauf 2024-06-20 19:24:40 -04:00
parent 808580bba0
commit e3ec38c26d
3 changed files with 30 additions and 0 deletions

View file

@ -9,6 +9,7 @@
./gnome
./hyprland
./sway
./startupApps.nix
./waylandComp.nix
];
}

View file

@ -0,0 +1,24 @@
{
pkgs,
lib,
config,
...
}: {
## Hyprland
wayland.windowManager.hyprland.extraConfig = ''
${
lib.strings.concatMapStringsSep
"\n"
(app: "exec-once = ${app}")
config.alyraffauf.desktop.startupApps
}
'';
## Sway
# dconf = {
# enable = true;
# settings = {
# };
# };
}

View file

@ -224,6 +224,11 @@
};
};
};
startupApps = lib.mkOption {
description = "Apps to launch at startup";
default = [];
type = lib.types.listOf (lib.types.str);
};
waylandComp = lib.mkOption {
description = "Shared defaults for wayland compositors.";
default =