From e3ec38c26dd12152c9186bbc77f46361eb1f97ce Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 20 Jun 2024 19:24:40 -0400 Subject: [PATCH] home/desktop: added startupApps module with initial hyprland support --- homeManagerModules/desktop/default.nix | 1 + homeManagerModules/desktop/startupApps.nix | 24 ++++++++++++++++++++++ homeManagerModules/options.nix | 5 +++++ 3 files changed, 30 insertions(+) create mode 100644 homeManagerModules/desktop/startupApps.nix 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 =