3
0
Fork 0
forked from mirrors/nixpkgs

nixos/agetty: allow overriding the login program

This commit is contained in:
Pierre Bourdon 2020-08-05 07:19:18 +02:00 committed by Jonathan Ringer
parent 83994d9ffe
commit cbe99c7fac

View file

@ -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;