36 lines
698 B
Nix
36 lines
698 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.jade.desktop.dm;
|
|
in
|
|
with lib; {
|
|
options.jade.desktop.dm.autoLogin = {
|
|
enable = mkEnableOption "Enable Autologin";
|
|
delay = mkOption {
|
|
type = types.int;
|
|
default = 0;
|
|
};
|
|
};
|
|
config.services = {
|
|
displayManager = {
|
|
autoLogin = {
|
|
enable = cfg.autoLogin.enable;
|
|
user = "jade";
|
|
};
|
|
defaultSession = "sway";
|
|
sessionPackages = [
|
|
pkgs.sway
|
|
];
|
|
};
|
|
xserver.displayManager.gdm = {
|
|
enable = true;
|
|
banner = "Meow :3";
|
|
autoLogin = {
|
|
delay = cfg.autoLogin.delay;
|
|
};
|
|
};
|
|
};
|
|
}
|