mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-01 02:13:58 +01:00
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
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ mylib, pkgs, ... }:
|
|
{
|
|
# wayland related
|
|
home.sessionVariables = {
|
|
"NIXOS_OZONE_WL" = "1"; # for any ozone-based browser & electron apps to run on wayland
|
|
"MOZ_ENABLE_WAYLAND" = "1"; # for firefox to run on wayland
|
|
"MOZ_WEBRENDER" = "1";
|
|
# enable native Wayland support for most Electron apps
|
|
"ELECTRON_OZONE_PLATFORM_HINT" = "auto";
|
|
# misc
|
|
"_JAVA_AWT_WM_NONREPARENTING" = "1";
|
|
"QT_WAYLAND_DISABLE_WINDOWDECORATION" = "1";
|
|
"SDL_VIDEODRIVER" = "wayland";
|
|
"GDK_BACKEND" = "wayland";
|
|
"XDG_SESSION_TYPE" = "wayland";
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
wl-clipboard # copying and pasting
|
|
hyprpicker # color picker
|
|
brightnessctl
|
|
# audio
|
|
alsa-utils # provides amixer/alsamixer/...
|
|
networkmanagerapplet # provide GUI app: nm-connection-editor
|
|
# screen recording
|
|
wf-recorder # screen recording
|
|
|
|
virt-viewer # vnc connect to VM, used by kubevirt
|
|
];
|
|
|
|
# Emergency session-menu fallback; the normal flow uses Noctalia's session panel.
|
|
programs.wlogout.enable = true;
|
|
|
|
# auto mount usb drives
|
|
services = {
|
|
udiskie.enable = true;
|
|
# syncthing.enable = true;
|
|
};
|
|
}
|