From 61ab3e1b3f6e2c4494b2beda69bae838eff07704 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 7 Dec 2024 20:19:03 -0500 Subject: [PATCH] add more fixes to flake update --- modules/common/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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;