summaryrefslogtreecommitdiff
path: root/nix/hm-module.nix
diff options
context:
space:
mode:
authorBardMoon <144455455+BardMoon@users.noreply.github.com>2025-09-02 18:51:38 +0900
committerGitHub <noreply@github.com>2025-09-02 19:51:38 +1000
commit19c005b5e3557e936ea97b4e591e0768742bca4d (patch)
tree12b32be04c9f14c5d7da7e29f2a44f47358f6ecf /nix/hm-module.nix
parentinternal: fix undef/null errors (diff)
downloadcaelestia-shell-19c005b5e3557e936ea97b4e591e0768742bca4d.tar.gz
caelestia-shell-19c005b5e3557e936ea97b4e591e0768742bca4d.tar.bz2
caelestia-shell-19c005b5e3557e936ea97b4e591e0768742bca4d.zip
nix/hm: add extraEnvironment (#533)
* nix: add extraEnvironment in home-manager This PR enables users to easily add environment variables to make systemd services work properly in all use cases. #390 * Update README.md * Update README.md * fix * Update hm-module.nix * Update hm-module.nix * extraEnvironment to environment * Update README.md * [CI] chore: update flake * fix --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'nix/hm-module.nix')
-rw-r--r--nix/hm-module.nix11
1 files changed, 10 insertions, 1 deletions
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";
};