about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;
+    };
 }