nix: Enable store auto optimisation

restic-rest-server
Simon Bruder 2020-12-02 22:17:50 +01:00
parent a04a0e1543
commit 5fe03fb923
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 7 additions and 2 deletions

View File

@ -39,8 +39,13 @@
# NixOS state version (see https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion)
system.stateVersion = "20.03";
# Make sudoers trusted nix users
nix.trustedUsers = [ "@wheel" ];
nix = {
# Make sudoers trusted nix users
trustedUsers = [ "@wheel" ];
# On-the-fly optimisation of nix store
autoOptimiseStore = true;
};
nixpkgs.config = {
# Explicitly allow unfree packages (rule of thumb: assets ok, code not ok)