summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--nix/hm-module.nix11
2 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index c033353..8992cf8 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 ef463b8..7eb6efa 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";
};