mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-09 19:32:05 +02:00
15 lines
279 B
Nix
15 lines
279 B
Nix
{
|
|
lib,
|
|
outputs,
|
|
}:
|
|
lib.genAttrs (builtins.attrNames outputs.nixosConfigurations) (
|
|
name:
|
|
let
|
|
isDesktop = name == "ai-niri" || name == "shoukei-niri";
|
|
in
|
|
{
|
|
X11Forwarding = isDesktop;
|
|
PermitRootLogin = if isDesktop then "no" else "prohibit-password";
|
|
}
|
|
)
|