diff options
author | Soispha <soispha@vhack.eu> | 2023-04-23 14:08:56 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-09 19:31:46 +0200 |
commit | 00ca805216eda639f132676e3394ee93f6ff10ff (patch) | |
tree | 4a25bb24970af42c6d01d36ad0aedd800e693a46 /home-manager/config/yambar/default.nix | |
parent | Feat(hm/wms/river): Bump runtime error to compile time (diff) | |
download | nixos-config-00ca805216eda639f132676e3394ee93f6ff10ff.tar.gz nixos-config-00ca805216eda639f132676e3394ee93f6ff10ff.zip |
Fix(hm/conf/yambar): Use different config on laptops
Diffstat (limited to 'home-manager/config/yambar/default.nix')
-rw-r--r-- | home-manager/config/yambar/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/home-manager/config/yambar/default.nix b/home-manager/config/yambar/default.nix index 977d39a9..f11a3300 100644 --- a/home-manager/config/yambar/default.nix +++ b/home-manager/config/yambar/default.nix @@ -1,5 +1,5 @@ { - config, + nixosConfig, sysLib, system, pkgs, @@ -21,8 +21,15 @@ + "/bin/${builtins.baseNameOf file}"; in { xdg.configFile."yambar/config.yml".source = pkgs.substituteAll { - src = ./config/config.yml; + src = + if nixosConfig.soispha.laptop.enable + then ./config/laptop.yml + else ./config/config.yml; + backlight = + if nixosConfig.soispha.laptop.enable + then nixosConfig.soispha.laptop.backlight + else ""; volume_script = makeScript { dependencies = builtins.attrValues {inherit (pkgs) pulseaudio gawk coreutils;}; file = ./scripts/sound-volume; |