summaryrefslogtreecommitdiff
path: root/modules/root/autologin.nix
diff options
context:
space:
mode:
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;
+ };
+ };
+}