summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-05-03 17:56:09 +0530
committersinanmohd <sinan@sinanmohd.com>2024-05-03 17:56:09 +0530
commitbad07776e0f4d6b912c99b9b9aa6ac7ce8940c6b (patch)
tree4bf233489ea44564c52574c0844207860e392c0f
parentca4b64c69773fba244256efcfb9eda8764e93ca6 (diff)
cez/getty: init
-rw-r--r--nixos/cez/configuration.nix6
-rw-r--r--nixos/cez/modules/getty.nix15
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"
+ ];
+ };
+}