Introduce the modules/desktop/ group behind a single modules.desktop.enable aggregator that hand-lists and turns on each piece at default priority, so a host enables the whole desktop with one flag yet can override any single piece. The Hyprland compositor lives in a subdirectory of the group, sourced from nixpkgs with the program integration owning the session, portals, and polkit and home-manager writing the config against that one package. greetd with the tuigreet greeter provides a mouse-free text login that launches the session through uwsm, and Ghostty is the terminal on Super+Return. Port the operator's KDE/i3 bindings expressed entirely in hjkl and letters, tune input (US layout, Caps->Escape, snappy repeat, touchpad taps and natural scroll, flat mouse accel), and set a subtle feel with blur left as a host knob. Enable the desktop on neogaia.
17 lines
596 B
Nix
17 lines
596 B
Nix
{ config, lib, ... }:
|
|
# The desktop aggregator: one flag brings up the whole graphical session.
|
|
let
|
|
cfg = config.modules.desktop;
|
|
in
|
|
{
|
|
options.modules.desktop.enable = lib.mkEnableOption "the keyboard-driven Hyprland desktop";
|
|
|
|
# Each piece is turned on at default priority, so a host can still override
|
|
# any one of them while the single flag above enables the whole desktop.
|
|
config = lib.mkIf cfg.enable {
|
|
modules.desktop.hyprland.enable = lib.mkDefault true;
|
|
modules.desktop.login.enable = lib.mkDefault true;
|
|
modules.desktop.terminal.enable = lib.mkDefault true;
|
|
};
|
|
}
|