diff --git a/homeManagerModules/desktop/default.nix b/homeManagerModules/desktop/default.nix index d17b3207..07e2b7df 100644 --- a/homeManagerModules/desktop/default.nix +++ b/homeManagerModules/desktop/default.nix @@ -9,6 +9,7 @@ ./gnome ./hyprland ./sway + ./startupApps.nix ./waylandComp.nix ]; } diff --git a/homeManagerModules/desktop/startupApps.nix b/homeManagerModules/desktop/startupApps.nix new file mode 100644 index 00000000..cc95f071 --- /dev/null +++ b/homeManagerModules/desktop/startupApps.nix @@ -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 = { + # }; + # }; +} diff --git a/homeManagerModules/options.nix b/homeManagerModules/options.nix index 7eefaebc..cf8cb276 100644 --- a/homeManagerModules/options.nix +++ b/homeManagerModules/options.nix @@ -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 =