summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"
+ ];
+ };
+}