Install nonfree packages inline with home-manager

main
Chandler Swift 2024-10-20 00:20:09 -05:00
parent 8ea69c6f23
commit d1dbf62076
Signed by: chandlerswift
GPG Key ID: A851D929D52FB93F
1 changed files with 10 additions and 4 deletions

View File

@ -13,11 +13,9 @@
];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"factorio-alpha"
"steam"
"steam-original"
"steam-run"
"discord"
];
# https://discourse.nixos.org/t/github-strategies-for-configuration-nix/1983/14
@ -120,6 +118,12 @@
users.users.chandler.description = "Chandler Swift";
users.users.chandler.extraGroups = [ "networkmanager" "wheel" "dialout" "cdrom" ];
home-manager.users.chandler = { pkgs, ... }: {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"factorio-alpha"
"discord"
];
home.packages = with pkgs; [
# applications
blender
@ -150,6 +154,10 @@
clang
go
rustc
# Unfree:
discord
factorio
];
programs.bash.enable = true;
@ -242,8 +250,6 @@
environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
discord
factorio
];
# Some programs need SUID wrappers, can be configured further or are