From bad07776e0f4d6b912c99b9b9aa6ac7ce8940c6b Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 3 May 2024 17:56:09 +0530 Subject: cez/getty: init --- nixos/cez/configuration.nix | 6 ++---- nixos/cez/modules/getty.nix | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 nixos/cez/modules/getty.nix 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" + ]; + }; +} -- cgit v1.2.3