Flake fixes for new systems

This commit is contained in:
Geoffrey Frogeye 2024-01-07 19:37:06 +01:00
parent 597b50ebef
commit e0fb3fcb22
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
2 changed files with 12 additions and 2 deletions

View file

@ -39,7 +39,17 @@ def process_flake(flake: str) -> None:
# call this function with the flake file # call this function with the flake file
process_flake(dep_flake) process_flake(dep_flake)
# update lockfile # update lockfile
cmd = ["nix", "flake", "lock", "--update-input", dep_name] cmd = [
"nix",
"--extra-experimental-features",
"nix-command",
"--extra-experimental-features",
"flakes",
"flake",
"lock",
"--update-input",
dep_name,
]
subprocess.run(cmd, cwd=dir) subprocess.run(cmd, cwd=dir)

View file

@ -168,4 +168,4 @@ with open("wireless_networks.env", "w") as fd:
print("Now, execute:") print("Now, execute:")
print("sudo mv -f wireless_networks.* /etc/keys") print("sudo mv -f wireless_networks.* /etc/keys")
print("sudo nixos-rebuild switch") print("rb")