about summary refs log tree commit diff stats
path: root/modules/by-name/ni
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-05-12 00:32:22 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-05-12 00:32:22 +0200
commit55fae2677ecb8a3d8e2adf653e2784a1c70829a6 (patch)
treebc62e5f9812bb2fbefec65216d1c57820eec436e /modules/by-name/ni
parenttreewide: Switch to npins (diff)
downloadnixos-config-55fae2677ecb8a3d8e2adf653e2784a1c70829a6.zip
treewide: Remove all references to `self.inputs`
That doesn't work anymore with the npins sources.
Diffstat (limited to 'modules/by-name/ni')
-rw-r--r--modules/by-name/ni/nix/module.nix14
-rw-r--r--modules/by-name/ni/nixos-shell/module.nix5
2 files changed, 10 insertions, 9 deletions
diff --git a/modules/by-name/ni/nix/module.nix b/modules/by-name/ni/nix/module.nix
index 2b91f59b..ed4462f4 100644
--- a/modules/by-name/ni/nix/module.nix
+++ b/modules/by-name/ni/nix/module.nix
@@ -10,11 +10,15 @@
 {
   pkgs,
   # flakes
+  sources,
   self,
   system,
   externalDependencies,
   ...
-}: {
+}:
+let
+  nixpkgs = sources.loadFlake "nixpkgs";
+in {
   # TODO(@bpeetz): Modularize <2025-02-08>
 
   nix = {
@@ -24,9 +28,9 @@
     channel.enable = false;
 
     registry = {
-      nixpkgs.flake = self.inputs.nixpkgs;
+      nixpkgs.flake = nixpkgs;
       n.flake =
-        self.inputs.nixpkgs
+        nixpkgs
         // {
           # Otherwise nixpkgs's config and overlays are not available:
 
@@ -52,14 +56,10 @@
       experimental-features = [
         "nix-command"
         "flakes"
-        #"ca-derivations"
       ];
 
       use-xdg-base-directories = true;
 
-      #substituters = ["https://cache.ngi0.nixos.org/"];
-      #trusted-public-keys = ["cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA="];
-
       fallback = true; # Build from source, if binary can't be substituted
 
       keep-failed = false; # keep failed tmp build dirs
diff --git a/modules/by-name/ni/nixos-shell/module.nix b/modules/by-name/ni/nixos-shell/module.nix
index 8dda2890..3556a98b 100644
--- a/modules/by-name/ni/nixos-shell/module.nix
+++ b/modules/by-name/ni/nixos-shell/module.nix
@@ -11,10 +11,11 @@
   lib,
   config,
   pkgs,
-  self,
+  sources,
   ...
 }: let
   cfg = config.soispha.nixos-shell;
+  nixpkgs = sources.loadFlake "nixpkgs";
 in {
   options.soispha.nixos-shell = {
     enable = lib.mkEnableOption "nixos-shell";
@@ -85,7 +86,7 @@ in {
   };
 
   config = let
-    vmSystem = self.inputs.nixpkgs.lib.nixosSystem {
+    vmSystem = nixpkgs.lib.nixosSystem {
       inherit (cfg.configuration) specialArgs;
 
       modules = [