Skip to content

Commit

Permalink
chore(scripts): remove wifi-password
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed May 5, 2024
1 parent 7589a07 commit 59c7d53
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions home/scripts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
};
}

0 comments on commit 59c7d53

Please sign in to comment.