diff options
author | Lin Jian <me@linj.tech> | 2023-08-16 08:56:35 +0800 |
---|---|---|
committer | Lin Jian <me@linj.tech> | 2023-08-16 09:18:45 +0800 |
commit | 1c704628dc81063664db9dcac8d0d90612166d8f (patch) | |
tree | ef566d3fe791925c25a93a2113b0b62fbdd023c7 /nixos/modules/programs | |
parent | c728b59162ce78769c6091c580e602559bb0a6b9 (diff) | |
download | nixpkgs-1c704628dc81063664db9dcac8d0d90612166d8f.tar nixpkgs-1c704628dc81063664db9dcac8d0d90612166d8f.tar.gz nixpkgs-1c704628dc81063664db9dcac8d0d90612166d8f.tar.bz2 nixpkgs-1c704628dc81063664db9dcac8d0d90612166d8f.tar.lz nixpkgs-1c704628dc81063664db9dcac8d0d90612166d8f.tar.xz nixpkgs-1c704628dc81063664db9dcac8d0d90612166d8f.tar.zst nixpkgs-1c704628dc81063664db9dcac8d0d90612166d8f.zip |
nixos/environment: stop setting ASPELL_CONF
We set[1] ASPELL_CONF to the last nix profile containing lib/aspell in 2013. In 2017, aspell is patched[2] to search NIX_PROFILES, which makes [1] not needed any more. Deleting it is also agreed in this discussion[3]. [1]: 0192c027203efa9b7b4d6516d8d5ae322e76c6bd [2]: ba4cefe4ae70cfb9121281f508ed5d9fa9dbc662 [3]: https://github.com/NixOS/nixpkgs/pull/30234
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/environment.nix | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/nixos/modules/programs/environment.nix b/nixos/modules/programs/environment.nix index a448727be77..3fbda153e0b 100644 --- a/nixos/modules/programs/environment.nix +++ b/nixos/modules/programs/environment.nix @@ -51,13 +51,6 @@ in environment.extraInit = '' - unset ASPELL_CONF - for i in ${concatStringsSep " " (reverseList cfg.profiles)} ; do - if [ -d "$i/lib/aspell" ]; then - export ASPELL_CONF="dict-dir $i/lib/aspell" - fi - done - export NIX_USER_PROFILE_DIR="/nix/var/nix/profiles/per-user/$USER" export NIX_PROFILES="${concatStringsSep " " (reverseList cfg.profiles)}" ''; |