about summary refs log tree commit diff
path: root/modules/common
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-06-24 11:10:21 +0300
committerAzat Bahawi <azat@bahawi.net>2024-06-24 11:10:21 +0300
commit75918debfd7245d90478f882b0323a705ab3c7be (patch)
tree26b8f0ab5a3e4d7c61963fa96d57250e5ddc9a7d /modules/common
parent2024-06-19 (diff)
2024-06-24
Diffstat (limited to '')
-rw-r--r--modules/common/nix.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/common/nix.nix b/modules/common/nix.nix
index 6c5bd18..3342113 100644
--- a/modules/common/nix.nix
+++ b/modules/common/nix.nix
@@ -126,11 +126,16 @@ in
 
         overlays = with inputs; [
           self.overlays.default
-          (_: _: {
+          (_: prev: {
             # Global PR package overrides go here. Example:
             # ```
             # inherit (pkgsPr 309018 "sha256-x3ATxjrTVdaX5eo9P6pz+8/W6D2TNYzvjZpOBa3ZRI8=") endlessh-go;
             # ```
+
+            spf-engine = prev.spf-engine.override {
+              # FIXME https://nixpk.gs/pr-tracker.html?pr=321940
+              inherit (pkgsMaster.python311.pkgs) pymilter;
+            };
           })
         ];
       };
@@ -141,7 +146,6 @@ in
         systemPackages =
           with pkgs;
           optionals this.isHeadful [
-            nix-top
             nix-tree
             nixfiles
           ];
@@ -151,9 +155,6 @@ in
         };
       };
 
-      system = {
-        # HACK This lets `nix flake check` to pass.
-        stateVersion = if hasAttr "stateVersion" this then this.stateVersion else trivial.release;
-      };
+      system.stateVersion = this.stateVersion or trivial.release;
     };
 }

Consider giving Nix/NixOS a try! <3