From a2a6f14223905fd6963e5a6e424ac1366ec220e6 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Fri, 7 Mar 2025 18:41:30 -0500 Subject: modules/nix: try to work around flake copying issues --- modules/nixos/defaults/nix.nix | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'modules/nixos') diff --git a/modules/nixos/defaults/nix.nix b/modules/nixos/defaults/nix.nix index fba0efc..847f674 100644 --- a/modules/nixos/defaults/nix.nix +++ b/modules/nixos/defaults/nix.nix @@ -1,32 +1,13 @@ -{ - lib, - pkgs, - inputs, - ... -}: - -let - flakeInputs = pkgs.linkFarm "flake-inputs" ( - lib.mapAttrs (lib.const (flake: flake.outPath)) inputs - ); -in +{ lib, ... }: { nix = { channel.enable = lib.mkDefault false; - nixPath = lib.mkForce ( - lib.mapAttrsToList (name: lib.const "${name}=/run/current-system/inputs/${name}") inputs - ); - settings.trusted-users = [ "@wheel" ]; }; nixpkgs.config.allowAliases = false; - - system.extraSystemBuilderCmds = '' - ln -s ${flakeInputs} $out/inputs - ''; } -- cgit v1.2.3