nix: Enable flake support
This commit is contained in:
parent
d704dab620
commit
af036e88db
|
@ -24,6 +24,9 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
# nix with flake support
|
||||||
|
package = pkgs.nixUnstable;
|
||||||
|
|
||||||
nixPath = [
|
nixPath = [
|
||||||
"/var/src" # pinned nixpkgs and configuration
|
"/var/src" # pinned nixpkgs and configuration
|
||||||
"nixpkgs=/var/src/nixpkgs" # for nix run
|
"nixpkgs=/var/src/nixpkgs" # for nix run
|
||||||
|
@ -45,6 +48,8 @@ in
|
||||||
# Binary cache upload
|
# Binary cache upload
|
||||||
secret-key-files = ${config.sops.secrets.binary-cache-secret-key.path}
|
secret-key-files = ${config.sops.secrets.binary-cache-secret-key.path}
|
||||||
netrc-file = ${config.sops.secrets.nix-netrc.path}
|
netrc-file = ${config.sops.secrets.nix-netrc.path}
|
||||||
|
|
||||||
|
experimental-features = nix-command flakes
|
||||||
'' + lib.optionalString config.sbruder.full ''
|
'' + lib.optionalString config.sbruder.full ''
|
||||||
# Keep output of derivations with gc root
|
# Keep output of derivations with gc root
|
||||||
keep-outputs = true
|
keep-outputs = true
|
||||||
|
|
Loading…
Reference in a new issue