Skip to content

Commit

Permalink
Move permittedInsecurePackages to channels module
Browse files Browse the repository at this point in the history
* Move permittedInsecurePackages option to channels module so all
  channels consider the modified insecure package rules
  • Loading branch information
evanjs committed Dec 6, 2020
1 parent 05a59a9 commit 6845506
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions config/new-modules/channels.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{ config, pkgs, lib, ... }:
let
permittedInsecurePackages = [
# what requires cryptography for python 2.7?
"python2.7-cryptography-2.9.2"
];
in
with lib; {

config.nixpkgs.config = {
# Allow proprietary packages
allowUnfree = true;
inherit permittedInsecurePackages;

# Create an alias for the unstable channel
packageOverrides = pkgs: rec {
Expand Down
5 changes: 0 additions & 5 deletions config/new-modules/profiles/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,6 @@ in {
services.fstrim.enable = true;

mine.prometheus.export.enable = true;

# what requires cryptography for python 2.7?
nixpkgs.config.permittedInsecurePackages = [
"python2.7-cryptography-2.9.2"
];
})
];
}

0 comments on commit 6845506

Please sign in to comment.