diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index ef0d8ad..9864127 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -32,6 +32,7 @@ in journalctl = enabled; just = enabled; lazygit = enabled; + less = enabled; neo = enabled; systemctl = enabled; }; diff --git a/modules/home/programs/less/default.nix b/modules/home/programs/less/default.nix new file mode 100644 index 0000000..438be2e --- /dev/null +++ b/modules/home/programs/less/default.nix @@ -0,0 +1,25 @@ +{ + lib, + config, + namespace, + ... +}: +let + inherit (lib) mkIf; + inherit (lib.${namespace}) mkEnableModule; + + cfg = config.${namespace}.programs.less; +in +{ + options = mkEnableModule "programs.less"; + + config = mkIf cfg.enable { + programs.less.enable = true; + + home.sessionVariables = { + LESS = "-R"; + }; + + programs.lesspipe.enable = true; + }; +} diff --git a/old/home/programs/less.nix b/old/home/programs/less.nix deleted file mode 100644 index dc93ccb..0000000 --- a/old/home/programs/less.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ ... }: -{ - programs.less.enable = true; - - home.sessionVariables = { - LESS = "-R"; - }; - - programs.lesspipe.enable = true; -}