From d1dbf62076d547132999b7e4aa095c9afda66d4f Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Sun, 20 Oct 2024 00:20:09 -0500 Subject: [PATCH] Install nonfree packages inline with home-manager --- oscar/configuration.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/oscar/configuration.nix b/oscar/configuration.nix index 1d3776f..359f9d1 100644 --- a/oscar/configuration.nix +++ b/oscar/configuration.nix @@ -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