summaryrefslogtreecommitdiff
path: root/hosts/base.nix
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-02-21 17:50:41 +0700
committerpolwex <polwex@sortug.com>2025-02-21 17:50:41 +0700
commit02ea8a3dd32173351206c2c9b2aaa458904e8966 (patch)
tree105e3446c34b063b8ad0080b71c4678346f9962d /hosts/base.nix
parent266bcb770323b5d461347fbdc83e43296cb18d34 (diff)
m
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