From 06e039923b2f46b2fe3a56da53573aa57df3a700 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Mon, 2 Mar 2020 00:23:22 +0300 Subject: [PATCH] Update modules/users.nix modules/workspace/i3/default.nix --- modules/users.nix | 4 ++++ modules/workspace/i3/default.nix | 1 + 2 files changed, 5 insertions(+) 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"; } {