diff --git a/hosts/chmura/configuration.nix b/hosts/chmura/configuration.nix index d46bcd8..b670476 100644 --- a/hosts/chmura/configuration.nix +++ b/hosts/chmura/configuration.nix @@ -4,9 +4,6 @@ }: let inherit (config.poz.other.system) username; in { - # fuck broadcom - nixpkgs.config.allowUnfree = true; - users.users.${username} = { extraGroups = [ "docker" ]; }; diff --git a/hosts/common/core/default.nix b/hosts/common/core/default.nix index afeb73a..e707ba3 100644 --- a/hosts/common/core/default.nix +++ b/hosts/common/core/default.nix @@ -14,5 +14,6 @@ _: { ./switch-ng.nix ./systemd-boot.nix ./timezone.nix + ./unfree.nix ]; } diff --git a/hosts/common/core/unfree.nix b/hosts/common/core/unfree.nix new file mode 100644 index 0000000..f58a051 --- /dev/null +++ b/hosts/common/core/unfree.nix @@ -0,0 +1,3 @@ +_: { + nixpkgs.config.allowUnfree = true; +} diff --git a/hosts/del/configuration.nix b/hosts/del/configuration.nix index 02f8d43..a7f2061 100644 --- a/hosts/del/configuration.nix +++ b/hosts/del/configuration.nix @@ -11,8 +11,6 @@ inherit (config.poz.other.system) username; in { - nixpkgs.config.allowUnfree = true; - nix.settings = { max-jobs = 2; cores = 3; diff --git a/hosts/hape/configuration.nix b/hosts/hape/configuration.nix index 8c1eba3..e90733b 100644 --- a/hosts/hape/configuration.nix +++ b/hosts/hape/configuration.nix @@ -6,8 +6,6 @@ }: let inherit (lib.attrsets) attrValues; in { - nixpkgs.config.allowUnfree = true; - systemd.oomd = { enable = true; enableUserServices = true; diff --git a/hosts/niks/configuration.nix b/hosts/niks/configuration.nix index e41ac20..26486ec 100644 --- a/hosts/niks/configuration.nix +++ b/hosts/niks/configuration.nix @@ -7,8 +7,6 @@ }: let inherit (lib.meta) getExe; in { - nixpkgs.config.allowUnfree = true; - boot = { extraModulePackages = [ (config.boot.kernelPackages.ddcci-driver.overrideAttrs (o: { diff --git a/hosts/work/configuration.nix b/hosts/work/configuration.nix index 4cbe0cb..c46f921 100644 --- a/hosts/work/configuration.nix +++ b/hosts/work/configuration.nix @@ -10,8 +10,6 @@ inherit (config.poz.other.system) username; in { - nixpkgs.config.allowUnfree = true; - nix.settings = { max-jobs = 2; cores = 3;