Skip to content

Commit 262c408

Browse files
committed
small system adjustments
1 parent 3ba6657 commit 262c408

5 files changed

Lines changed: 33 additions & 3 deletions

File tree

home/niri.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ in {
176176
programs.niri.settings = {
177177
prefer-no-csd = true;
178178

179-
# LG UltraGear 49" — pin to native 144Hz mode + enable FreeSync.
179+
# LG UltraGear 49" — pin to native 144Hz mode.
180180
outputs."DP-1" = {
181181
mode = {
182182
width = 3440;
183183
height = 1440;
184184
refresh = 143.923;
185185
};
186-
variable-refresh-rate = true;
186+
variable-refresh-rate = false;
187187
};
188188

189189
# X11 app compatibility — niri-flake auto-spawns this when the path is set

home/shell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ in {
1313
./shell/init.nix
1414
./shell/programs.nix
1515
./shell/env.nix
16+
./shell/blesh.nix
1617
];
1718

1819
home.packages = lib.optionals (nix-packages ? vcrunch) [nix-packages.vcrunch];

home/shell/blesh.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
lib,
3+
pkgs,
4+
...
5+
}: {
6+
home.packages = [pkgs.blesh];
7+
8+
programs.bash = {
9+
# Load ble.sh early (--attach=none defers attach until the end so
10+
# bash-preexec / atuin / starship can register their hooks first).
11+
bashrcExtra = lib.mkBefore ''
12+
if [[ $- == *i* ]] && [[ -z "''${BLE_VERSION-}" ]]; then
13+
source ${pkgs.blesh}/share/blesh/ble.sh --attach=none --noinputrc
14+
fi
15+
'';
16+
17+
# Attach at the very end, after every other integration has been sourced.
18+
# mkOrder 2100 pushes past starship (1900) and zoxide (2000) so ble.sh
19+
# captures the final PS1 set by starship instead of the default bare prompt.
20+
initExtra = lib.mkOrder 2100 ''
21+
[[ -n "''${BLE_VERSION-}" ]] && ble-attach
22+
'';
23+
};
24+
}

home/shell/packages.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
# --- DISK & FILE USAGE ---
2424
dust
2525
gdu
26+
duf
2627

2728
# --- VIEWERS & PAGERS ---
2829
viddy
@@ -35,6 +36,10 @@
3536
gping
3637
doggo
3738
lftp
39+
mosh
40+
41+
# --- BENCHMARKING ---
42+
hyperfine
3843

3944
# --- CLOUD & CONTAINERS ---
4045
gh

home/shell/programs.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
git = true;
6565
};
6666

67-
skim = {
67+
fzf = {
6868
enable = true;
6969
enableBashIntegration = true;
7070
defaultCommand = "fd --type f";

0 commit comments

Comments
 (0)