Files
nix-config/home/linux/gui/base/noctalia/default.nix
T
Ryan Yin 001d180b22 feat(noctalia): upgrade to the native v5 shell
Noctalia v5 is the native C++/Wayland rewrite; the Quickshell-based v4 line (pkgs.noctalia-shell) is EOL and its JSON config is not migrated upstream.

- use the upstream home-manager programs.noctalia module (present at our pinned HM revision) instead of the hand-rolled package + symlink module: it installs pkgs.noctalia, validates config.toml at build time via checkConfig, and supports customPalettes; drop the v4 Qt/Qt6ct session setup
- replace the v4 settings.json/plugins.json with a minimal shared config.toml (font, Catppuccin shell palette, templates off, screenshot annotation, accessibility/bar scale, night light, wallpaper, location/weather); host-specific bits live in per-host files (shoukei's eDP-1 backlight in noctalia/host-shoukei.toml), which merge after config.toml. Application theming stays with catppuccin/nix
- treat config.toml as the single source of truth: do NOT persist ~/.local/state/noctalia and set setup_wizard_enabled = false, so UI tweaks are promoted back into the repo instead of accumulating in app-owned state
- port niri keybinds to 'noctalia msg ...', update spawn-at-startup and the backdrop layer namespace, fix the broken 'octalia-shell' media-previous bind, and replace the grim/slurp/satty screenshot stack with Noctalia's native region/fullscreen/annotate commands (drop the unused packages)
- drop the now-redundant swaybg and swaylock (Noctalia owns the wallpaper and lock screen, the latter authenticating against the PAM 'login' service) and its PAM entry; keep wlogout as an emergency fallback
- update hypridle's lock commands and the matching eval test
- refresh the noctalia docs
2026-09-19 15:07:54 +08:00

31 lines
979 B
Nix

{
lib,
pkgs,
wallpapers,
...
}:
{
# Use the upstream Home Manager module (shipped by home-manager itself): it
# installs pkgs.noctalia, validates the TOML at build time via `checkConfig`,
# and handles custom palettes. Runtime changes made in the Settings UI keep
# working: they go to ~/.local/state/noctalia/settings.toml, which loads after
# this file and wins.
# https://docs.noctalia.dev/noctalia/getting-started/nixos/#home-manager
programs.noctalia = {
enable = true;
settings = ./config/config.toml;
};
# Noctalia v5 is started by niri's spawn-at-startup (see the niri conf), so
# app2unit is still used to launch desktop entries as systemd user units.
home.packages = [
pkgs.app2unit # Launch Desktop Entries (or arbitrary commands) as Systemd user units
]
++ (lib.optionals pkgs.stdenv.hostPlatform.isx86_64 [
pkgs.gpu-screen-recorder # recoding screen
]);
home.file."Pictures/Wallpapers".source = wallpapers;
}