globably allow unfree packages

This commit is contained in:
fleaz 2022-05-16 15:31:21 +02:00
parent ae83977fc6
commit 1279022a66
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
4 changed files with 7 additions and 30 deletions

View file

@ -60,14 +60,6 @@ in
services.printing.enable = true;
services.printing.drivers = with pkgs; [ splix ];
programs.steam.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-runtime"
];
# List packages installed in system profile. To search, run:
environment.systemPackages = with pkgs; [ vim wget curl git ];

View file

@ -1,9 +1,4 @@
{lib, ...}: {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-runtime"
];
programs.steam.enable = true;
}

View file

@ -1,9 +1,4 @@
{pkgs,lib, ...}:{
# Allow via to be used ( it has an unfree license )
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "via" ];
{config, pkgs,lib, ...}:{
# Load udev Rules for via
services.udev.packages = [ pkgs.via ];
}

View file

@ -10,23 +10,18 @@
../modules/sound.nix
../modules/ssh.nix
../modules/steam.nix
# ../modules/via.nix broken
../modules/via.nix
../modules/virtualbox.nix
../modules/borgbackup.nix
#../secrets/remote-builder.nix
../users/fleaz.nix
];
# needed for Steam and VIA
nixpkgs.config.allowUnfree = true;
# GTK settings stuff for e.g. themes
programs.dconf.enable = true;
# Temporary hacks that don't deserve their own module
networking.extraHosts =
''
10.10.37.2 bart2.fleaz.me
'';
}