From 59c7d53806b4dcb173053bf460c8c21e24532ad3 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Sat, 4 May 2024 23:31:15 -0400 Subject: [PATCH] chore(scripts): remove wifi-password --- home/scripts.nix | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/home/scripts.nix b/home/scripts.nix index 5cce791..8abd022 100644 --- a/home/scripts.nix +++ b/home/scripts.nix @@ -9,25 +9,16 @@ "${config.home.homeDirectory}/.local/bin" ]; - file = - builtins.listToAttrs (builtins.map (name: { - name = ".local/bin/${lib.removeSuffix ".sh" (builtins.baseNameOf name)}"; - value = { - source = lib.getExe (pkgs.writeShellApplication { - name = builtins.baseNameOf name; - text = builtins.readFile ./scripts/${name}; + file = builtins.listToAttrs (builtins.map (name: { + name = ".local/bin/${lib.removeSuffix ".sh" (builtins.baseNameOf name)}"; + value = { + source = lib.getExe (pkgs.writeShellApplication { + name = builtins.baseNameOf name; + text = builtins.readFile ./scripts/${name}; - bashOptions = ["errexit" "pipefail"]; - }); - }; - }) (builtins.attrNames (builtins.readDir ./scripts))) - // { - ".local/bin/wifi-password".source = "${pkgs.fetchFromGitHub { - owner = "uncenter"; - repo = "wifi-password"; - rev = "f4251aa27c18c6f9f96a30d1e6e5f6d759833242"; - sha256 = "sha256-+gefSWagzydDMQhuG26/iNam+4JNAcpB3qqZDh/TjEs="; - }}/wifi-password.sh"; + bashOptions = ["errexit" "pipefail"]; + }); }; + }) (builtins.attrNames (builtins.readDir ./scripts))); }; }