mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 01:33:55 -05:00
home/desktop: added startupApps module with initial hyprland support
This commit is contained in:
parent
808580bba0
commit
e3ec38c26d
|
@ -9,6 +9,7 @@
|
|||
./gnome
|
||||
./hyprland
|
||||
./sway
|
||||
./startupApps.nix
|
||||
./waylandComp.nix
|
||||
];
|
||||
}
|
||||
|
|
24
homeManagerModules/desktop/startupApps.nix
Normal file
24
homeManagerModules/desktop/startupApps.nix
Normal 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 = {
|
||||
# };
|
||||
# };
|
||||
}
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue