Skip to content

Commit

Permalink
fix(nixos): optimze storage
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Nov 24, 2023
1 parent e4044a1 commit aaca782
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions machines/shared.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
boot.loader.systemd-boot.configurationLimit = 10;

# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
Expand Down Expand Up @@ -78,11 +79,17 @@
experimental-features = nix-command flakes
'';
settings = {
auto-optimise-store = true;
trusted-users = [
"root"
"carlos"
];
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 1w";
};
};

environment.systemPackages = with pkgs; [
Expand Down

0 comments on commit aaca782

Please sign in to comment.