2022-02-06 00:06:26 +00:00
|
|
|
{ config, lib, ... }:
|
2022-02-13 13:10:21 +00:00
|
|
|
let
|
|
|
|
inherit (lib) mkIf;
|
2022-02-13 17:44:14 +00:00
|
|
|
inherit (lib.my) mkBoolOpt';
|
|
|
|
|
|
|
|
cfg = config.my.server;
|
2022-02-13 13:10:21 +00:00
|
|
|
in
|
|
|
|
{
|
2022-02-13 17:44:14 +00:00
|
|
|
options.my.server.enable = mkBoolOpt' false "Whether to enable common configuration for servers.";
|
|
|
|
config = mkIf cfg.enable {
|
2022-02-13 13:10:21 +00:00
|
|
|
services.getty.autologinUser = config.my.user.name;
|
|
|
|
};
|
|
|
|
}
|