about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/configuration.nix7
-rw-r--r--hosts/home.nix2
2 files changed, 9 insertions, 0 deletions
diff --git a/hosts/configuration.nix b/hosts/configuration.nix
index 0a2c8a3..bb0817c 100644
--- a/hosts/configuration.nix
+++ b/hosts/configuration.nix
@@ -117,6 +117,13 @@
     wlr.enable = true;
   };
 
+  #fix swaylock
+  security.pam.services.swaylock = {
+    text = ''
+      auth include login
+    '';
+  };
+
   # List services that you want to enable:
   services = {
     openssh = {
diff --git a/hosts/home.nix b/hosts/home.nix
index b3057cb..eb0ad68 100644
--- a/hosts/home.nix
+++ b/hosts/home.nix
@@ -39,6 +39,8 @@
       waybar
       wl-clipboard
       sway
+      swayidle
+      swaylock
       swaybg
       river
       wlr-randr