nix: Enable flake support

This commit is contained in:
Simon Bruder 2021-05-01 15:22:57 +02:00
parent d704dab620
commit af036e88db
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

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