From 3ecc0842450f577ff7716f97654525651c1b7cf7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 25 Feb 2023 20:39:41 -0300 Subject: 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. --- etc/nix/configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'etc/nix/configuration.nix') 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 -- cgit v1.2.3