ctucx.git: nixfiles

ctucx' nixfiles

commit 82f0671e5eb26e1b7c88dc8467a9c6f87bf2d133
parent 7462c1d8ac444c8d4911fb174eed9c9ce8c68d3e
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 10 Oct 2021 10:48:41 +0200

move service-restarts from sway to programs configuration
5 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/configurations/bluetooth.nix b/configurations/bluetooth.nix
@@ -12,6 +12,11 @@
 
   home-manager.users.leah = {
     home.packages = [ pkgs.blueman ];
+
+    wayland.windowManager.sway.extraConfig = ''
+      exec_always 'systemctl --user restart blueman-applet'
+    '';
+
     systemd.user.services = {
       blueman-applet = {
         Unit = {
diff --git a/configurations/programs/mako.nix b/configurations/programs/mako.nix
@@ -9,6 +9,10 @@
   };
 
   home-manager.users.leah = {
+    wayland.windowManager.sway.extraConfig = ''
+      exec_always 'systemctl --user restart mako'
+    '';
+
     programs.mako = {
       enable          = true;
 
diff --git a/configurations/programs/sway.nix b/configurations/programs/sway.nix
@@ -51,11 +51,6 @@
         exec swaymsg 'workspace 3: Term; exec ${terminal}; exec ${terminal};'
         exec swaymsg 'workspace 6: Files; exec thunar;'
         exec swaymsg 'workspace 1: Web;'
-
-        exec_always 'systemctl --user restart mako'
-        exec_always 'systemctl --user restart waybar'
-        exec_always 'systemctl --user restart blueman-applet'
-        exec_always 'systemctl --user restart gpg-agent'
       '';
 
       config = {
diff --git a/configurations/programs/waybar/default.nix b/configurations/programs/waybar/default.nix
@@ -2,6 +2,10 @@
 
 {
   home-manager.users.leah = {
+    wayland.windowManager.sway.extraConfig = ''
+      exec_always 'systemctl --user restart waybar'
+    '';
+
     programs = {
       waybar = {
         enable        = true;
diff --git a/configurations/yubikey.nix b/configurations/yubikey.nix
@@ -12,6 +12,10 @@
       };
     };
 
+    wayland.windowManager.sway.extraConfig = ''
+      exec_always 'gpgconf --kill gpg-agent'
+    '';
+
     programs = {
       gpg = {
         enable   = true;