[ubuntu] Niri!

This commit is contained in:
jmug
2026-11-19 17:32:09 -08:00
parent 26e8af76fc
commit c2160cb3c7
19 changed files with 495 additions and 12 deletions
+20 -2
View File
@@ -7,7 +7,8 @@ Ubuntu machines are managed in layers:
| User env: CLI tools, dotfiles, fonts, ssh hosts | `hosts/ubuntu/home.nix` | Home Manager |
| Desktop apps (flatpak) | `services.flatpak` in `hosts/ubuntu/home.nix` | nix-flatpak, on HM activation |
| OS packages | `apt-packages.txt` | `bootstrap.sh` |
| Third-party apt repos (tailscale/docker) | `bootstrap.sh` | `bootstrap.sh` |
| Third-party apt repos (tailscale, Dux Labs PPA for niri, Noctalia) | `bootstrap.sh` | `bootstrap.sh` |
| niri + Noctalia config | `home-modules/niri` | Home Manager (validated at build time) |
| System config files | `etc/**`, mirrored into `/etc` | `bootstrap.sh` |
| Self-updating tools from upstream installers (mise, herdr, tuicr) into `~/.local/bin` | `bootstrap.sh` | `bootstrap.sh tools` (kept up to date with update commands) |
@@ -28,7 +29,7 @@ After that:
## Keyboard (keyd)
`etc/keyd/default.conf` applies to every keyboard except YubiKeys:
`etc/keyd/default.conf` applies to every keyboard except YubiKeys (`etc/keyd/iqunix.conf` covers the IQUNIX MG75, which skips the Alt/Meta swap):
- Caps Lock and Left Control are swapped.
- Left Alt and Left Meta are swapped, so the key next to space is Meta.
@@ -39,6 +40,23 @@ After that:
To test keyd: `sudo keyd.rvaiya monitor`. To bypass a broken config: press Backspace+Escape+Enter together, which kills keyd.
## Desktop (niri + Noctalia)
GNOME stays installed. Pick **Niri** or **Ubuntu** in the GDM session menu
(gear icon on the password screen).
- niri comes from `ppa:duxlabs/dux-repo`, pinned so the PPA's other packages
don't replace Ubuntu's. Noctalia (bar, launcher, lock, idle, wallpaper)
comes from `pkg.noctalia.dev`.
- Config: `home-modules/niri/config.kdl` and `home-modules/niri/noctalia.toml`.
`homesw` fails if either doesn't validate.
- Noctalia's settings UI writes to `~/.local/state/noctalia/settings.toml`,
which overrides `noctalia.toml`. Copy the keepers into the repo.
- Because of keyd, Mod+C/V/X never reach niri: center is on Mod+Backslash and
floating is on Mod+P. Mod+Shift+/ lists the binds.
- Closing the lid suspends only on battery, so a Bluetooth keyboard or mouse
can wake the screens while docked.
## TODO
- [ ] **YubiKey**: port `modules/nixos/yubikey` and `home-modules/sops.nix`. ykman and pcscd from apt, the udev rule plus yubikey-up/down scripts in `etc/`, the sops age key from cold storage, and the `id_yubikey` identity files in the ssh config.