diff --git a/.config/linux/system/module/common/Nix.nix b/.config/linux/system/module/common/Nix.nix index b509f07..543c8ee 100644 --- a/.config/linux/system/module/common/Nix.nix +++ b/.config/linux/system/module/common/Nix.nix @@ -1,4 +1,5 @@ -{ ... }: { - nixpkgs.config.allowUnfree = true; +{ environment, ... }: { + environment.variables.NIXPKGS_ALLOW_UNFREE = "1"; nix.settings.auto-optimise-store = true; + nixpkgs.config.allowUnfree = true; } diff --git a/.config/linux/system/module/common/bash/module/Nix.sh b/.config/linux/system/module/common/bash/module/Nix.sh index 8a8f863..7616fdd 100644 --- a/.config/linux/system/module/common/bash/module/Nix.sh +++ b/.config/linux/system/module/common/bash/module/Nix.sh @@ -60,7 +60,7 @@ function nix_tmpshell() { pkgs+=("nixpkgs#${pkg}") done - NIX_SHELL="${tag}" nix shell ${pkgs[@]} + NIX_SHELL="${tag}" NIXPKGS_ALLOW_UNFREE=1 nix shell --impure ${pkgs[@]} } alias tmpshell="nix_tmpshell"