modularize allowUnfree

This commit is contained in:
jacekpoz 2024-09-01 23:02:29 +02:00
parent 5ccc7c34c0
commit 56758e7454
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
7 changed files with 4 additions and 11 deletions

View file

@ -4,9 +4,6 @@
}: let
inherit (config.poz.other.system) username;
in {
# fuck broadcom
nixpkgs.config.allowUnfree = true;
users.users.${username} = {
extraGroups = [ "docker" ];
};

View file

@ -14,5 +14,6 @@ _: {
./switch-ng.nix
./systemd-boot.nix
./timezone.nix
./unfree.nix
];
}

View file

@ -0,0 +1,3 @@
_: {
nixpkgs.config.allowUnfree = true;
}

View file

@ -11,8 +11,6 @@
inherit (config.poz.other.system) username;
in {
nixpkgs.config.allowUnfree = true;
nix.settings = {
max-jobs = 2;
cores = 3;

View file

@ -6,8 +6,6 @@
}: let
inherit (lib.attrsets) attrValues;
in {
nixpkgs.config.allowUnfree = true;
systemd.oomd = {
enable = true;
enableUserServices = true;

View file

@ -7,8 +7,6 @@
}: let
inherit (lib.meta) getExe;
in {
nixpkgs.config.allowUnfree = true;
boot = {
extraModulePackages = [
(config.boot.kernelPackages.ddcci-driver.overrideAttrs (o: {

View file

@ -10,8 +10,6 @@
inherit (config.poz.other.system) username;
in {
nixpkgs.config.allowUnfree = true;
nix.settings = {
max-jobs = 2;
cores = 3;