chore(module): default system to pkgs.system instead of pkgs relying on system

This commit is contained in:
technofab 2025-10-05 15:13:47 +02:00
parent ca84188b2f
commit 901ab49e43
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{
outputs = i: {
outputs = _i: {
lib = import ./.;
};
}

View file

@ -25,6 +25,7 @@ in {
description = ''
The system architecture (e.g., 'x86_64-linux', 'aarch64-darwin').
'';
default = config.ren.pkgs.system or "";
};
home-manager = mkInputOption "Home Manager";
@ -41,10 +42,6 @@ in {
description = ''
An instantiated nixpkgs set. Used for general pkgs and to get NixOS systems' modules.
'';
apply = x:
if (hasAttr "${config.ren.system or "unset"}" x)
then x.${config.ren.system}
else x;
};
};
}