Combine allowUnfree into a single entry
This commit is contained in:
parent
8bd790d8f5
commit
1bcaf4714e
|
@ -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
|
# trust sandro to set good defaults in nixos-modules
|
||||||
opinionatedDefaults = true;
|
opinionatedDefaults = true;
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
hostName = "factorio";
|
hostName = "factorio";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
||||||
"factorio-headless"
|
|
||||||
];
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
factorio = {
|
factorio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
autoUpdate = true;
|
autoUpdate = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
cores = 4;
|
cores = 4;
|
||||||
max-jobs = 4;
|
max-jobs = 4;
|
||||||
|
|
|
@ -57,8 +57,6 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
containers = {
|
containers = {
|
||||||
# hydra-binfmt-builder = {
|
# hydra-binfmt-builder = {
|
||||||
# autoStart = true;
|
# autoStart = true;
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
|
|
||||||
networking.hostName = "mastodon";
|
networking.hostName = "mastodon";
|
||||||
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: lib.getName pkg == "elasticsearch";
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# Sidekiq monitoring
|
# Sidekiq monitoring
|
||||||
collectd.plugins = {
|
collectd.plugins = {
|
||||||
|
|
Loading…
Reference in New Issue