diff --git a/hosts/tachibana/default.nix b/hosts/tachibana/default.nix index b2b8096..aadccd2 100644 --- a/hosts/tachibana/default.nix +++ b/hosts/tachibana/default.nix @@ -2,6 +2,7 @@ config, pkgs, inputs, + lib, ... }: { imports = [ @@ -28,7 +29,13 @@ deviceSection = ''Option "TearFree" "true"''; }; hardware.nvidia.open = true; - nixpkgs.config.allowUnfree = true; + nixpkgs.config.allowUnfreePredicate = pkg: + builtins.elem (lib.getName pkg) [ + "nvidia-x11" + "nvidia-settings" + ] + || pkgs._cuda.lib.allowUnfreeCudaPredicate pkg; + users.users.ahnwuoa = { isNormalUser = true; extraGroups = ["wheel"];