nixos/agetty: allow overriding the login program
This commit is contained in:
parent
83994d9ffe
commit
cbe99c7fac
@ -6,7 +6,7 @@ let
|
|||||||
cfg = config.services.getty;
|
cfg = config.services.getty;
|
||||||
|
|
||||||
baseArgs = [
|
baseArgs = [
|
||||||
"--login-program" "${pkgs.shadow}/bin/login"
|
"--login-program" "${cfg.loginProgram}"
|
||||||
] ++ optionals (cfg.autologinUser != null) [
|
] ++ optionals (cfg.autologinUser != null) [
|
||||||
"--autologin" cfg.autologinUser
|
"--autologin" cfg.autologinUser
|
||||||
] ++ optionals (cfg.loginOptions != null) [
|
] ++ optionals (cfg.loginOptions != null) [
|
||||||
@ -39,6 +39,14 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
loginProgram = mkOption {
|
||||||
|
type = types.path;
|
||||||
|
default = "${pkgs.shadow}/bin/login";
|
||||||
|
description = ''
|
||||||
|
Path to the login binary executed by agetty.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
loginOptions = mkOption {
|
loginOptions = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user