summary refs log tree commit diff
path: root/mixins
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2022-12-15 10:30:14 +0200
committertzlil <tzlils@protonmail.com>2022-12-15 10:30:14 +0200
commit3251c991e9eb9357e5f8e02b5ddbd7acae056d35 (patch)
treeaf6a0917ba91242f43a7eac6ae3231fa03fc7ee4 /mixins
parentf797764449d03d0f72ed9df9fc521edb546dafa1 (diff)
removed swaylock
Diffstat (limited to 'mixins')
-rw-r--r--mixins/cli.nix4
-rw-r--r--mixins/sway.nix26
2 files changed, 15 insertions, 15 deletions
diff --git a/mixins/cli.nix b/mixins/cli.nix
index ca6d55d..6560e4b 100644
--- a/mixins/cli.nix
+++ b/mixins/cli.nix
@@ -31,8 +31,8 @@
             l = "ls -alh";
           };
           functions = {
-            sb.body = "sudo nixos-rebuild build --flake ~/sources/nixcfg#(hostname)";
-            sw.body = "sudo nixos-rebuild switch --flake ~/sources/nixcfg#(hostname)";
+            sb.body = "sudo nixos-rebuild build --flake git+ssh://tzlil@100.99.246.128/home/tzlil/newflake";
+            sw.body = "sudo nixos-rebuild switch --flake git+ssh://tzlil@100.99.246.128/home/tzlil/newflake";
           };
         };
       };
diff --git a/mixins/sway.nix b/mixins/sway.nix
index db78c5c..c1dffa4 100644
--- a/mixins/sway.nix
+++ b/mixins/sway.nix
@@ -84,13 +84,13 @@ in {
   in {
     enable = false;
     systemdTarget = "graphical-session.target";
-    timeouts = [
-      # auto-lock after 30 seconds
-      {
-        timeout = 30;
-        command = fadelock.outPath;
-      }
-    ];
+    # timeouts = [
+    #   # auto-lock after 30 seconds
+    #   {
+    #     timeout = 30;
+    #     command = fadelock.outPath;
+    #   }
+    # ];
     events = [
       {
         event = "before-sleep";
@@ -213,12 +213,12 @@ in {
     };
     extraConfig = ''
       exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
-      exec ${pkgs.swayidle}/bin/swayidle -w \
-      	timeout 300 '${pkgs.swaylock}/bin/swaylock -f -c 000000' \
-      	timeout 600 'swaymsg "output * dpms off"' \
-      	resume 'swaymsg "output * dpms on"' \
-      	before-sleep '${pkgs.swaylock}/bin/swaylock -f -c 000000'
-      exec ${pkgs.polkit_gnome}/polkit-gnome/polkit-gnome-authentication-agent-1
+      # exec ${pkgs.swayidle}/bin/swayidle -w \
+      # 	timeout 300 '${pkgs.swaylock}/bin/swaylock -f -c 000000' \
+      # 	timeout 600 'swaymsg "output * dpms off"' \
+      # 	resume 'swaymsg "output * dpms on"' \
+      # 	before-sleep '${pkgs.swaylock}/bin/swaylock -f -c 000000'
+      # exec ${pkgs.polkit_gnome}/polkit-gnome/polkit-gnome-authentication-agent-1
 
       #set $mod Alt
       set $mod Mod4