# Noctalia v5 shell (bar, launcher, notifications, lock screen, wallpaper). # The module itself comes from the noctalia flake (home-manager sharedModules). # Settings are validated at build time by `noctalia config validate`, so only # keys from the upstream schema may appear here. Anything changed in the # settings window at runtime is stored separately and overrides this file. { config, lib, ... }: let cfg = config.my.home.noctalia; in { options.my.home.noctalia.enable = lib.mkEnableOption "Noctalia shell"; config = lib.mkIf cfg.enable { programs.noctalia = { enable = true; # A user service instead of hl.exec_cmd, so it restarts on failure and # follows graphical-session.target (managed by UWSM). systemd.enable = true; settings = { theme = { mode = "dark"; source = "builtin"; builtin = "Catppuccin"; }; shell = { # Installed system-wide (modules/nixos/desktop/fonts.nix). font_family = "Inter"; telemetry_enabled = false; # No other polkit agent is started in the session. polkit_agent = true; # Apps started from the launcher get their own systemd scope, so # restarting the shell service does not kill them. launch_apps_as_systemd_services = true; }; }; }; }; }