nix: Use 22.11 options
This commit is contained in:
parent
ad89732961
commit
91ec565702
|
@ -21,9 +21,6 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nix = {
|
nix = {
|
||||||
# nix with flake support
|
|
||||||
package = pkgs.nixFlakes;
|
|
||||||
|
|
||||||
registry = with inputs; {
|
registry = with inputs; {
|
||||||
nixpkgs.flake = nixpkgs;
|
nixpkgs.flake = nixpkgs;
|
||||||
nixpkgs-unstable.flake = nixpkgs-unstable;
|
nixpkgs-unstable.flake = nixpkgs-unstable;
|
||||||
|
@ -33,18 +30,20 @@ in
|
||||||
"nixpkgs=${inputs.nixpkgs}"
|
"nixpkgs=${inputs.nixpkgs}"
|
||||||
"nixpkgs-overlays=${overlaysCompat}"
|
"nixpkgs-overlays=${overlaysCompat}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
settings = {
|
||||||
# Make sudoers trusted nix users
|
# Make sudoers trusted nix users
|
||||||
trustedUsers = [ "@wheel" ];
|
trusted-users = [ "@wheel" ];
|
||||||
|
|
||||||
# On-the-fly optimisation of nix store
|
# On-the-fly optimisation of nix store
|
||||||
autoOptimiseStore = true;
|
auto-optimise-store = true;
|
||||||
extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes
|
experimental-features = "nix-command flakes";
|
||||||
'' + lib.optionalString config.sbruder.full ''
|
} // (lib.optionalAttrs config.sbruder.full {
|
||||||
# Keep output of derivations with gc root
|
# Keep output of derivations with gc root
|
||||||
keep-outputs = true
|
keep-outputs = true;
|
||||||
keep-derivations = true
|
keep-derivations = true;
|
||||||
'';
|
});
|
||||||
|
|
||||||
# Make nix build in background less noticeable
|
# Make nix build in background less noticeable
|
||||||
daemonCPUSchedPolicy = "batch";
|
daemonCPUSchedPolicy = "batch";
|
||||||
|
|
Loading…
Reference in a new issue