[nix] Adds GC
This commit is contained in:
8
system/features/gc.nix
Normal file
8
system/features/gc.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ ... }: {
|
||||
# Automatic
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
../../authorized-keys.nix
|
||||
../../features/gc.nix
|
||||
../../features/gui.nix
|
||||
];
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
./hardware-configuration.nix
|
||||
../../authorized-keys.nix
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
../../features/gc.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
../../authorized-keys.nix
|
||||
../../features/gc.nix
|
||||
../../features/gui.nix
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user