forked from mirrors/nixpkgs
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;
|
||||
|
||||
baseArgs = [
|
||||
"--login-program" "${pkgs.shadow}/bin/login"
|
||||
"--login-program" "${cfg.loginProgram}"
|
||||
] ++ optionals (cfg.autologinUser != null) [
|
||||
"--autologin" cfg.autologinUser
|
||||
] ++ 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 {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
|
|
Loading…
Reference in a new issue