Flake fixes for new systems
This commit is contained in:
parent
597b50ebef
commit
e0fb3fcb22
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue