flake: add default values for mkSystemFlake paths

This commit is contained in:
Alejandro Soto 2025-01-26 19:27:20 -06:00
parent 3a3d73d5b6
commit ae5315326a
2 changed files with 4 additions and 10 deletions

View file

@ -41,14 +41,14 @@
flakes, flakes,
system, system,
formatter ? "alejandra", formatter ? "alejandra",
localOverlayPath ? null, localOverlayPath ? /. + "${flakes.self}" + /pkgs,
nixpkgsConfigPath ? null, nixpkgsConfigPath ? localOverlayPath + /config,
nixosSourcePath ? null, nixosSourcePath ? /. + "${flakes.self}" + /sys,
nixosPlatformsPath ? nixosPlatformsPath ?
if nixosSourcePath != null if nixosSourcePath != null
then nixosSourcePath + /platform then nixosSourcePath + /platform
else null, else null,
hmSourcePath ? null, hmSourcePath ? /. + "${flakes.self}" + /home,
hmPlatformsPath ? hmPlatformsPath ?
if hmSourcePath != null if hmSourcePath != null
then hmSourcePath + /platform then hmSourcePath + /platform

View file

@ -24,11 +24,5 @@
trivium.lib.mkSystemFlake { trivium.lib.mkSystemFlake {
system = "x86_64-linux"; system = "x86_64-linux";
inherit flakes; inherit flakes;
localOverlayPath = ./pkgs;
nixpkgsConfigPath = ./pkgs/config;
hmSourcePath = ./home;
nixosSourcePath = ./sys;
}; };
} }