about summary refs log tree commit diff
path: root/modules/darwin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/darwin/common/nix.nix1
-rw-r--r--modules/darwin/homebrew.nix5
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/darwin/common/nix.nix b/modules/darwin/common/nix.nix
index b291d11..08379f8 100644
--- a/modules/darwin/common/nix.nix
+++ b/modules/darwin/common/nix.nix
@@ -39,5 +39,6 @@ with lib; {
 
   services.nix-daemon.enable = true;
 
+  # https://github.com/LnL7/nix-darwin/blob/master/CHANGELOG
   system.stateVersion = 4;
 }
diff --git a/modules/darwin/homebrew.nix b/modules/darwin/homebrew.nix
index 990afae..f0bec9b 100644
--- a/modules/darwin/homebrew.nix
+++ b/modules/darwin/homebrew.nix
@@ -16,6 +16,11 @@ in {
     homebrew = {
       enable = true;
       taps = [];
+      onActivation = {
+        autoUpdate = true;
+        cleanup = "zap";
+        upgrade = true;
+      };
     };
   };
 }

Consider giving Nix/NixOS a try! <3