From 569f2b4a29435c9f600b00ff5035d837fc4d5e76 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Tue, 5 Oct 2021 22:42:33 +0200 Subject: [PATCH] flake workaround for sputnik --- configs/sputnik/configuration.nix | 7 +++++++ system/all/default.nix | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configs/sputnik/configuration.nix b/configs/sputnik/configuration.nix index 8362320..46da400 100644 --- a/configs/sputnik/configuration.nix +++ b/configs/sputnik/configuration.nix @@ -13,6 +13,13 @@ ]; + nix = { + package = pkgs.nixUnstable; + extraOptions = '' + experimental-features = nix-command flakes + ''; + }; + networking.hostName = "sputnik"; networking.useDHCP = true; diff --git a/system/all/default.nix b/system/all/default.nix index 5150961..0fc5a49 100644 --- a/system/all/default.nix +++ b/system/all/default.nix @@ -63,7 +63,8 @@ # rewire NIX_PATH # --------------- - environment.variables.NIX_PATH = lib.mkForce "/var/src"; + #environment.variables.NIX_PATH = lib.mkForce "/var/src"; + nix.nixPath = [ "nixpkgs=${pkgs.path}" ]; # Shell configuration # -------------------