summaryrefslogtreecommitdiff
path: root/modules/root/autologin.nix
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2024-10-03 20:01:03 -0500
committerTim Keller <tjkeller.xyz>2024-10-03 20:01:03 -0500
commita651a2150aca24d915f7d139f6a8bcce9c6f641b (patch)
treebaeeb41312669a24919aeec8dd13bae618ea5470 /modules/root/autologin.nix
parent9aad420411b703278ac555858dc60f14f8f156bc (diff)
downloadnixos-a651a2150aca24d915f7d139f6a8bcce9c6f641b.tar.xz
nixos-a651a2150aca24d915f7d139f6a8bcce9c6f641b.zip
fix awesome with luajit and add some more cool stuff
Diffstat (limited to 'modules/root/autologin.nix')
-rw-r--r--modules/root/autologin.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/root/autologin.nix b/modules/root/autologin.nix
new file mode 100644
index 0000000..6e66160
--- /dev/null
+++ b/modules/root/autologin.nix
@@ -0,0 +1,13 @@
+{ lib, config, userDetails, ... }: {
+ options = {
+ autologin.enable = lib.mkEnableOption "enables getty automatic login";
+ #autologin.user = lib.mkEnableOption "populate username";
+ #autologin.password = lib.mkEnableOption "populate password";
+ };
+
+ config = lib.mkIf config.autologin.enable {
+ services.getty = {
+ autologinUser = userDetails.username;
+ };
+ };
+}