From 4c0c6a75b22962ad0a6c9073d2050482a665c8b3 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 29 Sep 2022 21:58:48 +0200 Subject: [PATCH] modules: system: packages: configure aliases Disallow them by default, but make it configurable. --- modules/system/packages/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/system/packages/default.nix b/modules/system/packages/default.nix index ceb85dd..5c29aa0 100644 --- a/modules/system/packages/default.nix +++ b/modules/system/packages/default.nix @@ -7,6 +7,8 @@ in options.my.system.packages = with lib; { enable = my.mkDisableOption "packages configuration"; + allowAliases = mkEnableOption "allow package aliases"; + allowUnfree = my.mkDisableOption "allow unfree packages"; }; @@ -27,7 +29,7 @@ in }; nixpkgs.config = { - allowUnfree = cfg.allowUnfree; # Because I don't care *that* much. + inherit (cfg) allowAliases allowUnfree; }; }; }