Combine allowUnfree into a single entry

This commit is contained in:
Sandro - 2023-01-29 22:45:53 +01:00
parent 8bd790d8f5
commit 1bcaf4714e
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
5 changed files with 9 additions and 10 deletions

View File

@ -79,6 +79,15 @@
};
};
nixpkgs.config = {
allowUnfreePredicate = pkg: builtins.elem (pkgs.lib.getName pkg) [
"drone.io"
"drone-runner-ssh"
"elasticsearch" # mastodon
"factorio-headless"
];
};
# trust sandro to set good defaults in nixos-modules
opinionatedDefaults = true;

View File

@ -9,10 +9,6 @@
hostName = "factorio";
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"factorio-headless"
];
services = {
factorio = {
enable = true;

View File

@ -9,8 +9,6 @@
autoUpdate = true;
};
nixpkgs.config.allowUnfree = true;
nix.settings = {
cores = 4;
max-jobs = 4;

View File

@ -57,8 +57,6 @@ in
'';
};
nixpkgs.config.allowUnfree = true;
containers = {
# hydra-binfmt-builder = {
# autoStart = true;

View File

@ -9,8 +9,6 @@
networking.hostName = "mastodon";
nixpkgs.config.allowUnfreePredicate = pkg: lib.getName pkg == "elasticsearch";
services = {
# Sidekiq monitoring
collectd.plugins = {