2026-06-16 13:29:15 +01:00
|
|
|
# Feature-flag option declarations shared by every NixOS host (imported via
|
|
|
|
|
# baseModules in flake.nix). Declaring the flags here -- rather than inside the
|
|
|
|
|
# module that implements them -- means a host can read or set a flag without
|
|
|
|
|
# importing the (often large) implementation module. In particular,
|
2026-06-29 13:06:23 +01:00
|
|
|
# features.swayDesktop.enable is read by modules/users.nix on every host, but a
|
2026-06-16 13:29:15 +01:00
|
|
|
# headless host (e.g. the Pi) must be able to leave it at its default without
|
2026-06-29 13:06:23 +01:00
|
|
|
# pulling in modules/sway.nix. The implementation lives in modules/sway.nix,
|
2026-06-16 13:29:15 +01:00
|
|
|
# gated on this flag.
|
|
|
|
|
{ lib, ... }:
|
|
|
|
|
{
|
|
|
|
|
options.features.swayDesktop.enable = lib.mkEnableOption "the Sway desktop";
|
|
|
|
|
}
|