Compare commits

...

2 commits
HEAD ... main

Author SHA1 Message Date
Dmitry Voronin c43efdcc3a Nix: Add prefetch function. 2024-10-22 11:21:28 +03:00
Dmitry Voronin 6e49c30e58 Home: Disable chat. 2024-10-22 07:43:59 +03:00
2 changed files with 13 additions and 1 deletions

View file

@ -47,5 +47,18 @@
SHELL_NAME="''${pkg}" NIXPKGS_ALLOW_UNFREE=1 nix shell --impure github:NixOS/nixpkgs/''${rev}#''${pkg} -c ''${cmd}
}
# Prefetch to nix store.
# Usage: prefetch <URL>
function prefetch() {
local url="''${1}"
if [[ "''${url}" = "" ]]; then
help prefetch
return 2
fi
nix hash to-sri --type sha256 $(nix-prefetch-url "''${url}")
}
'';
}

View file

@ -7,7 +7,6 @@
module = {
# ISSUE: hdd.enable = true;
change.enable = true;
chat.enable = true;
cloud.enable = true;
ddns.enable = true;
dns.enable = true;