about summary refs log tree commit diff stats
path: root/home-manager/config/yambar/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/config/yambar/default.nix')
-rw-r--r--home-manager/config/yambar/default.nix11
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;