[nix] Adds GC

This commit is contained in:
2025-04-25 15:24:33 -07:00
parent 59ae2bd981
commit 28e9c221ad
5 changed files with 12 additions and 9 deletions

8
system/features/gc.nix Normal file
View File

@@ -0,0 +1,8 @@
{ ... }: {
# Automatic
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
}

View File

@@ -4,6 +4,7 @@
./configuration.nix
./hardware-configuration.nix
../../authorized-keys.nix
../../features/gc.nix
../../features/gui.nix
];

View File

@@ -5,6 +5,7 @@
./hardware-configuration.nix
../../authorized-keys.nix
inputs.sops-nix.nixosModules.sops
../../features/gc.nix
];
nixpkgs.config.allowUnfree = true;

View File

@@ -1,12 +1,4 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
pkgs,
...
}:
{ pkgs, ... }:
{
networking.hostName = "vega"; # Define your hostname.

View File

@@ -4,6 +4,7 @@
./configuration.nix
./hardware-configuration.nix
../../authorized-keys.nix
../../features/gc.nix
../../features/gui.nix
];