about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-01-11 14:41:30 +0900
committersefidel <contact@sefidel.net>2024-01-12 00:18:45 +0900
commitd929d9140ae185f8958e4f22e00767871bcaaf65 (patch)
tree0da67c401501c38895e18f58be9aada13a72e6c2
parent60747923348733085f7c7647ba304e75c096d80d (diff)
downloadinfra-d929d9140ae185f8958e4f22e00767871bcaaf65.tar.gz
infra-d929d9140ae185f8958e4f22e00767871bcaaf65.zip
fix(modules): fix flake inputs
-rw-r--r--modules/flakes.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/flakes.nix b/modules/flakes.nix
index df86369..4297fda 100644
--- a/modules/flakes.nix
+++ b/modules/flakes.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, unstable, unstable-small, nixpkgs-2111, lib, ... }:
+{ config, inputs, pkgs, lib, ... }:
 
 with lib;
 let
@@ -15,9 +15,9 @@ in
       package = pkgs.nixUnstable;
       experimentalFeatures = "nix-command flakes";
 
-      registry.nixpkgs.flake = unstable;
-      registry.nixpkgsSmall.flake = unstable-small;
-      registry.nixpkgs2111.flake = nixpkgs-2111;
+      registry.nixpkgs.flake = inputs.unstable;
+      registry.nixpkgsSmall.flake = inputs.unstable-small;
+      registry.nixpkgs2111.flake = inputs.nixpkgs-2111;
 
       nixPath = [
         "nixpkgs=${nixpkgsPath}"
@@ -28,9 +28,9 @@ in
     };
 
     systemd.tmpfiles.rules = [
-      "L+ ${nixpkgsPath}         - - - - ${unstable}"
-      "L+ ${nixpkgsSmallPath} - - - - ${unstable-small}"
-      "L+ ${nixpkgs2111Path} - - - - ${nixpkgs-2111}"
+      "L+ ${nixpkgsPath}      - - - - ${inputs.unstable}"
+      "L+ ${nixpkgsSmallPath} - - - - ${inputs.unstable-small}"
+      "L+ ${nixpkgs2111Path}  - - - - ${inputs.nixpkgs-2111}"
     ];
   };
 }