summaryrefslogtreecommitdiff
path: root/hosts/base.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/base.nix')
-rw-r--r--hosts/base.nix21
1 files changed, 16 insertions, 5 deletions
diff --git a/hosts/base.nix b/hosts/base.nix
index aea25e9..e8de7d8 100644
--- a/hosts/base.nix
+++ b/hosts/base.nix
@@ -2,11 +2,22 @@
# fucking linux vulnerability
# enable flakes
nix = {
- gc = {
- automatic = true;
- interval = {Weekday = 0; Hour = 20; Minute = 0;};
- options = "--delete-older-than 7d";
- };
+ gc =
+ {
+ automatic = true;
+ options = "--delete-older-than 7d";
+ }
+ // (
+ if pkgs.stdenv.isDarwin
+ then {
+ interval = {
+ Weekday = 0;
+ Hour = 20;
+ Minute = 0;
+ };
+ }
+ else {dates = "weekly";}
+ );
# package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes