foamat code

This commit is contained in:
2024-04-17 16:47:06 +02:00
parent 1c7a93963a
commit ebedd90923
23 changed files with 231 additions and 194 deletions

View File

@@ -1,9 +1,10 @@
{ config, lib, ... }:
let
cfg = config.desktop.dm;
in
{
config,
lib,
...
}: let
cfg = config.desktop.dm;
in {
options.desktop.dm = with lib; {
name = mkOption {
type = types.nullOr (types.enum ["sddm" "gdm"]);
@@ -34,7 +35,7 @@ in
xkbVariant = "";
xkbOptions = "caps:ctrl_modifier";
};
services.xserver.displayManager.autoLogin.enable = (cfg.autologin != null);
services.xserver.displayManager.autoLogin.enable = cfg.autologin != null;
services.xserver.displayManager.autoLogin.user = cfg.autologin;
};
}