diff options
author | sils <sils@sils.li> | 2022-12-09 22:31:05 +0100 |
---|---|---|
committer | sils <sils@sils.li> | 2022-12-09 22:31:05 +0100 |
commit | e5eed599534df85459b720d44c873c45e756b73d (patch) | |
tree | 9edb75284f7ee0eeef6a9f36a208193dd82ba5c8 | |
parent | recognize zsh.nix (diff) | |
download | nix-config-e5eed599534df85459b720d44c873c45e756b73d.tar.gz nix-config-e5eed599534df85459b720d44c873c45e756b73d.zip |
enable autologin
-rw-r--r-- | plasma.nix | 8 | ||||
-rw-r--r-- | users.nix | 20 |
2 files changed, 18 insertions, 10 deletions
diff --git a/plasma.nix b/plasma.nix index 4ed8ee0..412e3d3 100644 --- a/plasma.nix +++ b/plasma.nix @@ -1,7 +1,9 @@ { config, pkgs, ... }: { - services.xserver.enable = true; - services.xserver.displayManager.sddm.enable = true; - services.xserver.desktopManager.plasma5.enable = true; + services.xserver = { + enable = true; + displayManager.sddm.enable = true; + desktopManager.plasma5.enable = true; + }; } diff --git a/users.nix b/users.nix index 870abb7..f843634 100644 --- a/users.nix +++ b/users.nix @@ -1,13 +1,19 @@ { config, pkgs, ... }: { - users.mutableUsers = false; - users.users.sils = { - isNormalUser = true; - home = "/home/sils"; - shell = pkgs.zsh; - initialHashedPassword = "$y$j9T$r4578Hy9jZHmUH9uSr9OI.$SuR2anRq7EJ1gUJ6vi9qYmZrhLP.o3O5643IG6r5Ap/"; - extraGroups = [ "wheel" "networkmanager"]; + users = { + mutableUsers = false; + users.sils = { + isNormalUser = true; + home = "/home/sils"; + shell = pkgs.zsh; + initialHashedPassword = "$y$j9T$r4578Hy9jZHmUH9uSr9OI.$SuR2anRq7EJ1gUJ6vi9qYmZrhLP.o3O5643IG6r5Ap/"; + extraGroups = [ "wheel" "networkmanager"]; + }; + }; + services.xserver.displayManager.autoLogin = { + enable = true; + user = "sils"; }; } |