From 7c8ff79a113b5a7bffd19ad28b3b41f9ae1160c8 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Mon, 10 Oct 2022 15:47:48 -0700 Subject: [PATCH] Add i3lock instead of lightdm --- hosts/desktop.nix | 5 ++++- i3.nix | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hosts/desktop.nix b/hosts/desktop.nix index 6d5f619..d2f007c 100644 --- a/hosts/desktop.nix +++ b/hosts/desktop.nix @@ -16,7 +16,10 @@ xkbOptions = "caps:escape"; displayManager = { lightdm.enable = true; - #sddm.enable = true; + autoLogin = { + enable = true; + user = "elnu"; + }; defaultSession = "none+i3"; }; windowManager.i3 = { diff --git a/i3.nix b/i3.nix index 5bf03a9..4fe469c 100644 --- a/i3.nix +++ b/i3.nix @@ -5,6 +5,7 @@ let in { # Dependencies home.packages = with pkgs; [ + i3lock # lockscreen playerctl # pactl comes with PulseAudio scrot # Screnshot keybindings xclip # Copying screenshots to clipboard @@ -22,7 +23,7 @@ in { }; startup = [ { - command = "systemctl --user restart polybar"; + command = "(systemctl --user restart polybar &) && i3lock -i `readlink -f ~/.background-image`"; always = true; notification = false; }