From 43c9825e49d25fbd2c19abcdeb8f73aee8be2a4c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 14 May 2025 10:50:27 +0200 Subject: ... --- system-profiles/core/default.nix | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'system-profiles/core/default.nix') diff --git a/system-profiles/core/default.nix b/system-profiles/core/default.nix index b85aea4e..229a007e 100644 --- a/system-profiles/core/default.nix +++ b/system-profiles/core/default.nix @@ -127,36 +127,16 @@ in { flake-registry = "${flakeInputs.flake-registry}/flake-registry.json"; }; - nixPath = [ - "nixpkgs=${pkgs.runCommand "nixpkgs" {} '' - mkdir $out - ln -s ${./nixpkgs.nix} $out/default.nix - ln -s /run/nixpkgs/lib $out/lib - ''}" - ]; + nixPath = map (flake: "${flake}=flake:${flake}") (attrNames config.nix.registry); registry = let override = { self = "nixos"; }; in mapAttrs' (inpName: inpFlake: nameValuePair (override.${inpName} or inpName) - { flake = inpFlake; } ) flakeInputs; + { to = { type = "path"; path = inpFlake; }; } ) flakeInputs; }; systemd.tmpfiles.rules = [ "L+ /run/nixpkgs - - - - ${flakeInputs.${config.nixpkgs.flakeInput}.outPath}" - "L+ /run/nixpkgs-overlays.nix - - - - ${pkgs.writeText "overlays.nix" '' - with builtins; - - attrValues (import - ( - let lock = fromJSON (readFile ${flake + "/flake.lock"}); in - fetchTarball { - url = "https://github.com/edolstra/flake-compat/archive/''${lock.nodes.flake-compat.locked.rev}.tar.gz"; - sha256 = lock.nodes.flake-compat.locked.narHash; - } - ) - { src = ${flake}; } - ).defaultNix.overlays - ''}" "L+ /etc/nixos - - - - ${flake}" ] ++ map (input: "L+ /run/flake-inputs/${input} - - - - ${flakeInputs.${input}.outPath}") (attrNames flakeInputs); @@ -177,8 +157,6 @@ in { { manual.manpages.enable = true; systemd.user.startServices = "sd-switch"; - - programs.ssh.internallyManaged = mkForce true; } ]; extraSpecialArgs = { inherit flake flakeInputs path; hostConfig = config; }; -- cgit v1.2.3