mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
nixos/agetty: allow overriding the login program
This commit is contained in:
parent
83994d9ffe
commit
cbe99c7fac
1 changed files with 9 additions and 1 deletions
|
@ -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