diff --git a/README.md b/README.md index c033353b..8992cf85 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,7 @@ programs.caelestia = { }; paths.wallpaperDir = "~/Images"; }; + environment = []; cli = { enable = true; # Also add caelestia-cli to path settings = { diff --git a/nix/hm-module.nix b/nix/hm-module.nix index ef463b83..7eb6efa1 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -43,6 +43,14 @@ in { default = ""; description = "Caelestia shell extra configs written to shell.json"; }; + environment = mkOption { + type = types.listOf types.str; + description = "Extra Environment variables to pass to the Caelestia shell systemd service."; + default = [ ]; + example = [ + "QT_QPA_PLATFORMTHEME=gtk3" + ]; + }; cli = { enable = mkEnableOption "Enable Caelestia CLI"; package = mkOption { @@ -87,7 +95,8 @@ in { TimeoutStopSec = "5s"; Environment = [ "QT_QPA_PLATFORM=wayland" - ]; + ] + ++ cfg.environment; Slice = "session.slice"; };