diff options
author | EuAndreh <eu@euandre.org> | 2023-02-25 20:39:41 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-02-25 20:42:10 -0300 |
commit | 3ecc0842450f577ff7716f97654525651c1b7cf7 (patch) | |
tree | a5747909d40f18bba58422e17f5eb7f3c598656c | |
parent | etc/guix/system.scm: Add xmonad as an alternative to i3 (diff) | |
download | dotfiles-3ecc0842450f577ff7716f97654525651c1b7cf7.tar.gz dotfiles-3ecc0842450f577ff7716f97654525651c1b7cf7.tar.xz |
etc/nix/configuration.nix: Force disable programs.less
The programs.less modules is enabled by default by NixOS, and injects
some nasty global environment variables ($LESSOPEN and
$LESSKEYIN_SYSTEM), which make the experience of using less(1) much
worse and slower.
So instead on doing an 'unset LESSOPEN' or something similar, I chose to
simply disable it, and stick to the less(1) from Guix Home.
-rw-r--r-- | etc/nix/configuration.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/nix/configuration.nix b/etc/nix/configuration.nix index 081c617..4fb55bd 100644 --- a/etc/nix/configuration.nix +++ b/etc/nix/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: # rollback to a previously working channel version, useful # when "doas nixos-rebuild switch --upgrade" breaks: @@ -46,6 +46,8 @@ i18n.defaultLocale = "fr_FR.UTF-8"; time.timeZone = "America/Sao_Paulo"; + programs.less.enable = lib.mkForce false; + environment = { systemPackages = with pkgs; [ xmobar |