From 318978655894aaa82fdf4c5de1eb9c58cb351a91 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 7 Mar 2024 10:07:49 -0800 Subject: share configuration for shell utils --- hosts/mba/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'hosts/mba') diff --git a/hosts/mba/default.nix b/hosts/mba/default.nix index 7d20580..772cf8a 100644 --- a/hosts/mba/default.nix +++ b/hosts/mba/default.nix @@ -1,9 +1,17 @@ -{ pkgs, self, ... }: +{ pkgs, ... }: { services.nix-daemon.enable = true; nix = { package = pkgs.nixFlakes; + + gc = { + user = "root"; + automatic = true; + interval = { Weekday = 0; Hour = 2; Minute = 0; }; + options = "--delete-older-than 30d"; + }; + settings = { experimental-features = [ "nix-command" "flakes" ]; }; @@ -19,7 +27,5 @@ # Touch ID for sudo auth security.pam.enableSudoTouchIdAuth = true; - home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; - home-manager.users.fcuny = import ../../nix/profiles/home-manager/personal.nix { inherit pkgs self; }; + home-manager.users.fcuny = import ../../nix/profiles/home-manager/personal.nix; } -- cgit 1.4.1