Compare commits

..

8 commits

Author SHA1 Message Date
9f548cffe3 WIP: home: delta: use stand-alone configuration file
Some checks failed
ci/woodpecker/push/check Pipeline failed
Ideally, I'd like for `delta` to just read a configuration file at
`$XDG_CONFIG_HOME/delta/config` by default, but upstream seems somewhat
reticent to the idea :-/.

TODO:
* `git.enable = false` would break the standalone configuration
* using a wrapper which sets `--config` might be better than includes
2025-02-26 10:50:52 +00:00
0422859f85 home: git: extract 'delta' configuration
I want to be able to re-use it between different source control systems
(e.g: `jj`).

As a first step, extract it to a proper module so that I can have it
live in a single space.
2025-02-26 10:50:52 +00:00
a5aa99c83f home: tmux: enable aggressive resize
Some checks failed
ci/woodpecker/push/check Pipeline failed
Generally useful, rarely gets in the way, I'd rather have it enabled by
default.
2025-02-25 13:58:02 +00:00
49262360ab hosts: home: mousqueton: enable 'tmux-resurrect'
Some checks failed
ci/woodpecker/push/check Pipeline failed
2025-02-25 13:39:46 +00:00
5bc4b4d33f home: tmux: add 'enableResurrect'
To be used on the cloudtop with its frequent reboots.
2025-02-25 13:38:18 +00:00
e43570fe5b home: pager: allow quitting without screen clear
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2025-02-24 17:09:11 +00:00
852696409a home: pager: remove 'LESSKEY'
It should do the lookup in `$XDG_CONFIG_HOME/lesskey` automatically now.
2025-02-24 17:09:11 +00:00
d3a953247c home: packages: disable on 'useGlobalPkgs'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
It doesn't do anything when `useGlobalPkgs` is set, and has started
warning about its upcoming deprecation.
2025-02-24 14:15:04 +00:00
4 changed files with 21 additions and 3 deletions

View file

@ -15,6 +15,9 @@
# I use scripts that use the passthrough sequence often on this host
enablePassthrough = true;
# Frequent reboots mean that session persistence can be handy
enableResurrect = true;
terminalFeatures = {
# HTerm uses `xterm-256color` as its `$TERM`, so use that here
xterm-256color = { };

View file

@ -1,6 +1,7 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, osConfig, ... }:
let
cfg = config.my.home.packages;
useGlobalPkgs = osConfig.home-manager.useGlobalPkgs or false;
in
{
options.my.home.packages = with lib; {
@ -29,7 +30,7 @@ in
tree
] ++ cfg.additionalPackages);
nixpkgs.config = {
nixpkgs.config = lib.mkIf (!useGlobalPkgs) {
inherit (cfg) allowAliases allowUnfree;
};
};

View file

@ -16,7 +16,11 @@ in
LESS = "-R -+X -c";
# Better XDG compliance
LESSHISTFILE = "${config.xdg.stateHome}/less/history";
LESSKEY = "${config.xdg.configHome}/less/lesskey";
};
xdg.configFile."lesskey".text = ''
# Quit without clearing the screen on `Q`
Q toggle-option -!^Predraw-on-quit\nq
'';
};
}

View file

@ -20,6 +20,8 @@ in
enablePassthrough = mkEnableOption "tmux DCS passthrough sequence";
enableResurrect = mkEnableOption "tmux-resurrect plugin";
terminalFeatures = mkOption {
type = with types; attrsOf (submodule {
options = {
@ -50,6 +52,7 @@ in
mouse = false; # I dislike mouse support
focusEvents = true; # Report focus events
terminal = "tmux-256color"; # I want accurate termcap info
aggressiveResize = true; # Automatic resize when switching client size
plugins = with pkgs.tmuxPlugins; [
# Open high-lighted files in copy mode
@ -79,6 +82,13 @@ in
set -g status-right '#{prefix_highlight} %a %Y-%m-%d %H:%M'
'';
}
# Resurrect sessions
(lib.optionalAttrs cfg.enableResurrect {
plugin = resurrect;
extraConfig = ''
set -g @resurrect-dir '${config.xdg.stateHome}/tmux/resurrect'
'';
})
];
extraConfig = ''