summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--flake.nix4
-rw-r--r--user/settings/nix.nix3
-rw-r--r--user/settings/pin.nix11
3 files changed, 18 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 7abecbd5..6329ef61 100644
--- a/flake.nix
+++ b/flake.nix
@@ -43,6 +43,7 @@
       };
       homeConfigurations."alan@mba" = home-manager.lib.homeManagerConfiguration {
         pkgs = darwinPkgs;
+        extraSpecialArgs = { inherit attrs; };
         modules = [
           ./user/mba.nix
           (secrets + "/default.nix")
@@ -52,6 +53,7 @@
       };
       homeConfigurations."alan@prefect" = home-manager.lib.homeManagerConfiguration {
         pkgs = nixosPkgs;
+        extraSpecialArgs = { inherit attrs; };
         modules = [
           ./user/prefect.nix
           (secrets + "/default.nix")
@@ -61,6 +63,7 @@
       };
       homeConfigurations."alan@nanopi" = home-manager.lib.homeManagerConfiguration {
         pkgs = aarch64LinuxPackages;
+        extraSpecialArgs = { inherit attrs; };
         modules = [
           ./user/nanopi.nix
           (secrets + "/default.nix")
@@ -68,6 +71,7 @@
       };
       homeConfigurations."alan@pappel" = home-manager.lib.homeManagerConfiguration {
         pkgs = nixosPkgs;
+        extraSpecialArgs = { inherit attrs; };
         modules = [
           ./user/server.nix
           (secrets + "/default.nix")
diff --git a/user/settings/nix.nix b/user/settings/nix.nix
index ce68e158..b15f5c5d 100644
--- a/user/settings/nix.nix
+++ b/user/settings/nix.nix
@@ -2,6 +2,9 @@
 , pkgs
 , ...
 }: {
+  imports = [
+    ./pin.nix
+  ];
   nixpkgs.config = import ../config.nix;
   home.packages = with pkgs; [
     nil
diff --git a/user/settings/pin.nix b/user/settings/pin.nix
new file mode 100644
index 00000000..7ce0858b
--- /dev/null
+++ b/user/settings/pin.nix
@@ -0,0 +1,11 @@
+{ attrs, ... }:
+let
+  inherit (attrs) nixpkgs;
+in
+{
+  nix = {
+    registry = {
+      nixpkgs.flake = nixpkgs;
+    };
+  };
+}