From 901ab49e431ec0daa29fc94c9a7274114d0044a8 Mon Sep 17 00:00:00 2001 From: technofab Date: Sun, 5 Oct 2025 15:13:47 +0200 Subject: [PATCH] chore(module): default system to pkgs.system instead of pkgs relying on system --- lib/flake.nix | 2 +- lib/ren-module.nix | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/flake.nix b/lib/flake.nix index 1bb6f53..0c81bd4 100644 --- a/lib/flake.nix +++ b/lib/flake.nix @@ -1,5 +1,5 @@ { - outputs = i: { + outputs = _i: { lib = import ./.; }; } diff --git a/lib/ren-module.nix b/lib/ren-module.nix index 44db0cf..9247be4 100644 --- a/lib/ren-module.nix +++ b/lib/ren-module.nix @@ -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; }; }; }