Add nix store optimisation

This commit is contained in:
Patrick Neff 2024-03-09 16:20:11 +01:00
parent 7c07902392
commit 084dfd4c0f
3 changed files with 20 additions and 8 deletions

View File

@ -521,11 +521,11 @@
"nur": "nur"
},
"locked": {
"lastModified": 1709993437,
"narHash": "sha256-32l5eAL5u52I3Knm9jPGnQuwOd4zUnhwOAUoMJDNYtY=",
"lastModified": 1709996459,
"narHash": "sha256-zwBqjv92cLqiDC4QcMsbeqxhs2HdUCyYe4YC6rIgTfw=",
"ref": "refs/heads/master",
"rev": "c7a5193f80d05839bb69252aef6a7f3d4550ce73",
"revCount": 11,
"rev": "8c956368020f27ce8c8530b821ad1384dbfd41e3",
"revCount": 18,
"type": "git",
"url": "ssh://gitea@pi1.odie.intranet/odie/home-manager-flake.git"
},

View File

@ -7,12 +7,11 @@
home-manager.users.odie = _: {
imports = [
inputs.neovim-flake.homeModules.default
inputs.home-manager-flake.homeModules.base
inputs.home-manager-flake.homeModules.shell
inputs.neovim-flake.homeModules.default
inputs.home-manager-flake.homeModules.dev
];
programs.neovim-ide.enable = true;
};
system.stateVersion = "23.11";

View File

@ -1,3 +1,16 @@
_: {
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix = {
optimise = {
automatic = true;
};
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
}