From 3d47947a058560145970163d0c4ed554a6d35bff Mon Sep 17 00:00:00 2001 From: fleaz Date: Sun, 25 Jun 2023 01:08:10 +0200 Subject: [PATCH] all: Move gc into own module --- modules/gc.nix | 7 +++++++ roles/all.nix | 8 ++------ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 modules/gc.nix diff --git a/modules/gc.nix b/modules/gc.nix new file mode 100644 index 0000000..5358d5a --- /dev/null +++ b/modules/gc.nix @@ -0,0 +1,7 @@ +{ + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; +} diff --git a/roles/all.nix b/roles/all.nix index b772a68..621ed3b 100644 --- a/roles/all.nix +++ b/roles/all.nix @@ -21,6 +21,7 @@ in ../modules/borgbackup.nix ../modules/udisks2.nix ../modules/samba.nix + ../modules/gc.nix ../secrets/remote-builder.nix ../users/fleaz.nix @@ -51,15 +52,10 @@ in console.font = consoleFont config.my.highDPI; - nix.gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 30d"; - }; - # weekly trim services.fstrim.enable = true; + networking.extraHosts = '' ''; }