From 2eb8f36610d9fc32e4684e87b12990aebddf63f8 Mon Sep 17 00:00:00 2001 From: liv Date: Wed, 21 Aug 2024 14:35:07 +0200 Subject: [PATCH] enable nh for easier management --- nixos/common/default.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/nixos/common/default.nix b/nixos/common/default.nix index 6eba048..d792304 100644 --- a/nixos/common/default.nix +++ b/nixos/common/default.nix @@ -18,11 +18,12 @@ ]; }; - gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than +3"; - }; + # disabled in favour of nh + # gc = { + # automatic = true; + # dates = "weekly"; + # options = "--delete-older-than +3"; + # }; }; users.users.lu.extraGroups = ["audio"]; @@ -31,6 +32,15 @@ services.devmon.enable = true; services.gvfs.enable = true; services.udisks2.enable = true; + + # set up a keyring services.gnome.gnome-keyring.enable = true; security.pam.services.hyprland.enableGnomeKeyring = true; + + # use nh for easier nix stuff + programs.nh = { + enable = true; + clean.enable = true; + clean.extraArgs = "--keep 3"; + }; }