From 5156e1aae36a153be98b6832ab3ced7be2b2faee Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 20 May 2024 16:06:57 +0200 Subject: refactor(hm): Rename to `modules/home` --- hm/soispha/conf/yambar/default.nix | 52 -------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 hm/soispha/conf/yambar/default.nix (limited to 'hm/soispha/conf/yambar/default.nix') diff --git a/hm/soispha/conf/yambar/default.nix b/hm/soispha/conf/yambar/default.nix deleted file mode 100644 index 021dfbdd..00000000 --- a/hm/soispha/conf/yambar/default.nix +++ /dev/null @@ -1,52 +0,0 @@ -{ - nixosConfig, - sysLib, - system, - pkgs, - yambar_cpu, - yambar_memory, - ... -}: let - makeScript = { - name, - dependencies, - ... - }: - sysLib.writeShellScript { - inherit name; - src = ./scripts/${name}.sh; - dependencies = dependencies ++ (builtins.attrValues {inherit (pkgs) dash;}); - } - + "/bin/${name}"; -in { - xdg.configFile."yambar/config.yml".source = pkgs.substituteAll { - 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 ""; - - mpd_song_name_script = makeScript { - dependencies = builtins.attrValues {inherit (pkgs) mpc-cli;}; - name = "mpd_song_name"; - }; - - volume_script = makeScript { - dependencies = builtins.attrValues {inherit (pkgs) pulseaudio gawk coreutils;}; - name = "sound-volume"; - }; - - cpu_script = yambar_cpu.app.${system}.default.program; - - memory_script = yambar_memory.app.${system}.default.program; - - disk_script = makeScript { - dependencies = builtins.attrValues {inherit (pkgs) gawk btrfs-progs coreutils;}; - name = "disk"; - }; - }; -} -- cgit 1.4.1