mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-23 13:44:42 +01:00
37 lines
698 B
Nix
37 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;
|
|
};
|
|
};
|
|
};
|
|
}
|