Skip to content

Commit

Permalink
nix store optimise
Browse files Browse the repository at this point in the history
  • Loading branch information
esselius committed Oct 24, 2024
1 parent df2e25f commit 01390e7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions darwin-modules/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
];
};

optimise = {
automatic = true;
interval = [{ Weekday = 7; Hour = 4; Minute = 15; }];
};

gc = {
automatic = true;
options = "--delete-older-than 7d";
Expand Down
4 changes: 0 additions & 4 deletions home-modules/fish-shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@
nix-direnv.enable = true;
};
};

home.sessionVariables = {
EDITOR = "code --wait";
};
}
2 changes: 1 addition & 1 deletion home-modules/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ in

programs.nixvim = {
enable = true;
defaultEditor = true;

nixpkgs.pkgs = unstable-pkgs;

Expand Down Expand Up @@ -43,7 +44,6 @@ in
neo-tree.enable = true;

noice.enable = true;
lazy.enable = true;

lsp = {
enable = true;
Expand Down
5 changes: 5 additions & 0 deletions nixos-modules/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

registry.nixpkgs.flake = inputs.nixpkgs;

optimise = {
automatic = true;
dates = [ "03:45" ];
};

nixPath = [
"nixpkgs=${inputs.nixpkgs}"
];
Expand Down

0 comments on commit 01390e7

Please sign in to comment.