diff options
| author | sinanmohd <sinan@sinanmohd.com> | 2024-05-03 17:56:09 +0530 | 
|---|---|---|
| committer | sinanmohd <sinan@sinanmohd.com> | 2024-05-03 17:56:09 +0530 | 
| commit | bad07776e0f4d6b912c99b9b9aa6ac7ce8940c6b (patch) | |
| tree | 4bf233489ea44564c52574c0844207860e392c0f | |
| parent | ca4b64c69773fba244256efcfb9eda8764e93ca6 (diff) | |
cez/getty: init
| -rw-r--r-- | nixos/cez/configuration.nix | 6 | ||||
| -rw-r--r-- | nixos/cez/modules/getty.nix | 15 | 
2 files changed, 17 insertions, 4 deletions
| diff --git a/nixos/cez/configuration.nix b/nixos/cez/configuration.nix index 01420e0..6a08b88 100644 --- a/nixos/cez/configuration.nix +++ b/nixos/cez/configuration.nix @@ -13,6 +13,7 @@ in      ./modules/wireguard.nix      ./modules/network.nix      ./modules/tlp.nix +    ./modules/getty.nix    ];    boot = { @@ -29,12 +30,9 @@ in      '';    }; -  services = { -    pipewire = { +  services.pipewire = {        enable = true;        pulse.enable = true; -    }; -    getty.autologinUser = user;    };    programs.adb.enable = true; diff --git a/nixos/cez/modules/getty.nix b/nixos/cez/modules/getty.nix new file mode 100644 index 0000000..725eb4b --- /dev/null +++ b/nixos/cez/modules/getty.nix @@ -0,0 +1,15 @@ +{ config, ... }: let +  user = config.userdata.name; +in { +  systemd.services."getty@".serviceConfig.TTYVTDisallocate = "no"; + +  services.getty = { +    loginOptions = "-f ${user}"; +    extraArgs = [ +      "--nonewline" +      "--skip-login" +      "--noclear" +      "--noissue" +    ]; +  }; +} | 
