diff --git a/flake.nix b/flake.nix index 2318aa0..d8e51c6 100644 --- a/flake.nix +++ b/flake.nix @@ -41,14 +41,14 @@ flakes, system, formatter ? "alejandra", - localOverlayPath ? null, - nixpkgsConfigPath ? null, - nixosSourcePath ? null, + localOverlayPath ? /. + "${flakes.self}" + /pkgs, + nixpkgsConfigPath ? localOverlayPath + /config, + nixosSourcePath ? /. + "${flakes.self}" + /sys, nixosPlatformsPath ? if nixosSourcePath != null then nixosSourcePath + /platform else null, - hmSourcePath ? null, + hmSourcePath ? /. + "${flakes.self}" + /home, hmPlatformsPath ? if hmSourcePath != null then hmSourcePath + /platform diff --git a/templates/system-flake/flake.nix b/templates/system-flake/flake.nix index 7b4ec56..6afe06f 100644 --- a/templates/system-flake/flake.nix +++ b/templates/system-flake/flake.nix @@ -24,11 +24,5 @@ trivium.lib.mkSystemFlake { system = "x86_64-linux"; inherit flakes; - - localOverlayPath = ./pkgs; - nixpkgsConfigPath = ./pkgs/config; - - hmSourcePath = ./home; - nixosSourcePath = ./sys; }; }