about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMalte Voos <git@mal.tc>2025-02-20 01:08:31 +0100
committerMalte Voos <git@mal.tc>2025-02-20 01:08:31 +0100
commit1b8dc665934f3e1a386a43e0ecb6d2eaf89ea5aa (patch)
tree2a0bc8276942ed8c0947fcbdef72deb550f52159
parentd47dffedbd77b00fa1d9e76ead3b5c38333eb3f9 (diff)
downloadreMder-1b8dc665934f3e1a386a43e0ecb6d2eaf89ea5aa.tar.gz
reMder-1b8dc665934f3e1a386a43e0ecb6d2eaf89ea5aa.zip
fix overlay attribute in flake main
-rw-r--r--flake.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 222eb14..f8bf227 100644
--- a/flake.nix
+++ b/flake.nix
@@ -9,8 +9,8 @@
       nixpkgs,
       flake-utils,
     }:
-    flake-utils.lib.eachDefaultSystem (system: rec {
-      overlays.default =
+    let
+      overlay =
         final: prev:
         let
           sshPassword = "1234";
@@ -35,14 +35,18 @@
         {
           inherit reMder;
         };
-
+    in
+    flake-utils.lib.eachDefaultSystem (system: {
       packages.default =
         let
           pkgs = import nixpkgs {
             inherit system;
-            overlays = [ overlays.default ];
+            overlays = [ overlay ];
           };
         in
         pkgs.reMder;
-    });
+    })
+    // {
+      overlays.default = overlay;
+    };
 }