feat(nix): add rebuild script for when local cache is down
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-14 15:23:49 -05:00
parent 0a60fa42a4
commit fd9880e00d

View file

@ -1,4 +1,18 @@
{...}: {
{
config,
pkgs,
...
}: {
environment.systemPackages = with pkgs; [
(writeShellApplication {
name = "rebuild-no-cache";
runtimeInputs = [config.nh.package];
text = ''
nh os switch -- --option binary-caches "https://cache.nixos.org" "$@"
'';
})
];
nix = {
settings = {
substituters = [