From fd44d23309049c1ac547744a97a29450b64616ae Mon Sep 17 00:00:00 2001 From: notohh Date: Tue, 6 Dec 2022 21:49:46 -0500 Subject: [PATCH] init gc / autoUpgrade --- configuration.nix | 11 +++++++++++ modules/systemd/default.nix | 0 modules/wayland/wayland.nix | 1 - 3 files changed, 11 insertions(+), 1 deletion(-) delete mode 100644 modules/systemd/default.nix delete mode 100644 modules/wayland/wayland.nix diff --git a/configuration.nix b/configuration.nix index b816ad3..cd525d9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -146,8 +146,19 @@ nix = { package = pkgs.nixFlakes; extraOptions = "experimental-features = nix-command flakes"; + settings.auto-optimise-store = true; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; }; + system.autoUpgrade = { + enable = true; + channel = "https://nixos.org/channel/nixos-unstable"; + }; + hardware = { nvidia = { powerManagement.enable = true; diff --git a/modules/systemd/default.nix b/modules/systemd/default.nix deleted file mode 100644 index e69de29..0000000 diff --git a/modules/wayland/wayland.nix b/modules/wayland/wayland.nix deleted file mode 100644 index 8b13789..0000000 --- a/modules/wayland/wayland.nix +++ /dev/null @@ -1 +0,0 @@ -