foamat code
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user