diff options
Diffstat (limited to 'autologin.nix')
-rw-r--r-- | autologin.nix | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/autologin.nix b/autologin.nix deleted file mode 100644 index 42a3316..0000000 --- a/autologin.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ config, pkgs, getty, ... }: - -let - script = pkgs.writeText "login-program.sh" '' - if [[ "$(tty)" == '/dev/tty1' ]]; then - ${pkgs.shadow}/bin/login -f jp3; - else - ${pkgs.shadow}/bin/login; - fi - ''; -in - -{ - services.getty = { - loginProgram = "${pkgs.bash}/bin/sh"; - loginOptions = toString script; - extraArgs = [ "--skip-login" ]; - }; -} |