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