mirror of
https://gitlab.com/rensa-nix/utils.git
synced 2025-12-10 22:50:12 +01:00
chore(module): default system to pkgs.system instead of pkgs relying on system
This commit is contained in:
parent
ca84188b2f
commit
901ab49e43
2 changed files with 2 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
outputs = i: {
|
||||
outputs = _i: {
|
||||
lib = import ./.;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue