# modules/features/desktop/options.nix — the desktop switches. # # Both desktops are installed by default and chosen at login (tuigreet lists # every session and remembers the last one). Set one to false in # modules/hosts/laptop/configuration.nix to drop it from the system entirely. # # daemon.desktop.hyprland.enable Hyprland (uwsm) + Caelestia Shell # daemon.desktop.niri.enable Niri + Noctalia Shell # # Home-manager modules read the same switches through `osConfig`. { self, ... }: { flake.nixosModules.desktop-options = { lib, config, pkgs, ... }: { options.daemon.desktop = { hyprland.enable = lib.mkEnableOption "Hyprland with Caelestia Shell" // { default = true; }; niri.enable = lib.mkEnableOption "Niri with Noctalia Shell" // { default = true; }; # Which wrapped niri (modules/features/desktop/niri.nix) is the session: # the author's by default; the generic host passes one built for its # keyboard with the neutral Noctalia. niri.package = lib.mkOption { type = lib.types.package; default = self.packages.${pkgs.stdenv.hostPlatform.system}.niri-daemon; defaultText = lib.literalExpression "self.packages.\${system}.niri-daemon"; description = "The wrapped niri package used as the login session."; }; }; config.assertions = [ { assertion = config.daemon.desktop.hyprland.enable || config.daemon.desktop.niri.enable; message = "daemon.desktop: enable at least one desktop"; } ]; } ; }