From e0fb3fcb222f55f25d6d1f204d7196ad516bbf75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sun, 7 Jan 2024 19:37:06 +0100 Subject: [PATCH] Flake fixes for new systems --- hm/rebuild/update-local-flakes.py | 12 +++++++++++- os/wireless/import.py | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hm/rebuild/update-local-flakes.py b/hm/rebuild/update-local-flakes.py index d009105..14afdac 100755 --- a/hm/rebuild/update-local-flakes.py +++ b/hm/rebuild/update-local-flakes.py @@ -39,7 +39,17 @@ def process_flake(flake: str) -> None: # call this function with the flake file process_flake(dep_flake) # 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) diff --git a/os/wireless/import.py b/os/wireless/import.py index bda0449..5182be5 100755 --- a/os/wireless/import.py +++ b/os/wireless/import.py @@ -168,4 +168,4 @@ with open("wireless_networks.env", "w") as fd: print("Now, execute:") print("sudo mv -f wireless_networks.* /etc/keys") -print("sudo nixos-rebuild switch") +print("rb")