From 00ca805216eda639f132676e3394ee93f6ff10ff Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 23 Apr 2023 14:08:56 +0200 Subject: Fix(hm/conf/yambar): Use different config on laptops --- home-manager/config/yambar/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'home-manager/config/yambar/default.nix') 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; -- cgit 1.4.1