nix: Enable store auto optimisation
This commit is contained in:
parent
a04a0e1543
commit
5fe03fb923
|
@ -39,8 +39,13 @@
|
||||||
# NixOS state version (see https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion)
|
# NixOS state version (see https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion)
|
||||||
system.stateVersion = "20.03";
|
system.stateVersion = "20.03";
|
||||||
|
|
||||||
|
nix = {
|
||||||
# Make sudoers trusted nix users
|
# Make sudoers trusted nix users
|
||||||
nix.trustedUsers = [ "@wheel" ];
|
trustedUsers = [ "@wheel" ];
|
||||||
|
|
||||||
|
# On-the-fly optimisation of nix store
|
||||||
|
autoOptimiseStore = true;
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
# Explicitly allow unfree packages (rule of thumb: assets ok, code not ok)
|
# Explicitly allow unfree packages (rule of thumb: assets ok, code not ok)
|
||||||
|
|
Loading…
Reference in a new issue