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,
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

View file

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