From af036e88db1c6bed82133afff00e8b1544e95e9c Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 1 May 2021 15:22:57 +0200 Subject: [PATCH] nix: Enable flake support --- modules/nix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/nix.nix b/modules/nix.nix index ea843d3..09d6997 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -24,6 +24,9 @@ in }; nix = { + # nix with flake support + package = pkgs.nixUnstable; + nixPath = [ "/var/src" # pinned nixpkgs and configuration "nixpkgs=/var/src/nixpkgs" # for nix run @@ -45,6 +48,8 @@ in # Binary cache upload secret-key-files = ${config.sops.secrets.binary-cache-secret-key.path} netrc-file = ${config.sops.secrets.nix-netrc.path} + + experimental-features = nix-command flakes '' + lib.optionalString config.sbruder.full '' # Keep output of derivations with gc root keep-outputs = true