commit c4446608190f847aeb392aa9e490f6bb8520d588 parent 17c6d4d068532a73bfb3396fd0c837e9fc6c14b7 Author: Vincent Demeester <vincent@sbr.pm> Date: Sat, 23 May 2020 17:22:08 +0200 systems/hokkaido: fix nix-config Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | systems/hokkaido.nix | | | 19 | ++++++++++++++++++- |
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/systems/hokkaido.nix b/systems/hokkaido.nix @@ -2,8 +2,9 @@ { imports = [ (import ../nix).home-manager - ../hardware/thinkpad-x220.nix ../modules/module-list.nixos.nix + # hardware + ../hardware/thinkpad-x220.nix # FIXME: remove this ../machines/home.nixos.nix ]; @@ -39,4 +40,20 @@ ssh.enable = true; nix-config.buildCores = 2; }; + + nix.nixPath = [ + "nixos-config=${dummyConfig}" + "nixpkgs=/run/current-system/nixpkgs" + "nixpkgs-overlays=/run/current-system/overlays" + ]; + + # FIXME: put this in a common + system = { + extraSystemBuilderCmds = '' + ln -sv ${pkgs.path} $out/nixpkgs + ln -sv ${../overlays} $out/overlays + ''; + + stateVersion = "20.03"; + }; }