nix: Enable flake support

pull/52/head
Simon Bruder 2021-05-01 15:22:57 +02:00
parent d704dab620
commit af036e88db
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 5 additions and 0 deletions

View File

@ -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