diff --git a/modules/common/default.nix b/modules/common/default.nix index e64492e..f165b67 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -76,6 +76,11 @@ description = "List of unfree packages to allow."; default = [ ]; }; + insecurePackages = lib.mkOption { + type = lib.types.listOf lib.types.str; + description = "List of insecure packages to allow."; + default = [ ]; + }; hostnames = { audiobooks = lib.mkOption { type = lib.types.str; @@ -181,6 +186,9 @@ # Retrieves package object based on string name nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.unfreePackages; + # Allow specified insecure packages (identified elsewhere) + nixpkgs.config.permittedInsecurePackages = config.insecurePackages; + # Pin a state version to prevent warnings home-manager.users.${config.user}.home.stateVersion = stateVersion; home-manager.users.root.home.stateVersion = stateVersion;