diff --git a/modules/users.nix b/modules/users.nix index cce5199..a1607c5 100644 --- a/modules/users.nix +++ b/modules/users.nix @@ -46,6 +46,10 @@ enable = true; }; + services.mingetty.autologinUser = "balsoft"; + + environment.loginShellInit = "sway; sudo -u balsoft zsh"; + security.pam.services = builtins.listToAttrs (builtins.map (name: { inherit name; value = { unixAuth = false; }; diff --git a/modules/workspace/i3/default.nix b/modules/workspace/i3/default.nix index dead281..824dc8a 100755 --- a/modules/workspace/i3/default.nix +++ b/modules/workspace/i3/default.nix @@ -69,6 +69,7 @@ in { ]; }; startup = map (a: { notification = false; } // a) [ + { command = lock; } # For autologin purposes { command = apps.browser.cmd; } { command = "${pkgs.kdeconnect}/libexec/kdeconnectd"; } {