From 6d86e9dedb28972e82b7e930a5bae1d27e7ece4b Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 6 Nov 2022 09:57:21 +0100 Subject: [PATCH] ma gui: restructure main-laptop --- 2configs/gui/look-up.nix | 13 +++++++++++++ 2configs/main-laptop.nix | 12 +----------- 2 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 2configs/gui/look-up.nix diff --git a/2configs/gui/look-up.nix b/2configs/gui/look-up.nix new file mode 100644 index 0000000..d27f5cf --- /dev/null +++ b/2configs/gui/look-up.nix @@ -0,0 +1,13 @@ +{ + systemd.services.look-up = { + startAt = "*:30"; + serviceConfig = { + ExecStart= pkgs.writeDash "look-up" '' + set -x + eval "export '$(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(${pkgs.procps}/bin/pgrep -u ${user} ${window-manager})/environ)'" + ${pkgs.libnotify}/bin/notify-send -u critical -t 9999999 'look up once in a while' + ''; + User = user; + }; + }; +} diff --git a/2configs/main-laptop.nix b/2configs/main-laptop.nix index cb78c82..a7181cf 100644 --- a/2configs/main-laptop.nix +++ b/2configs/main-laptop.nix @@ -12,6 +12,7 @@ let in { imports = [ ./gui/base.nix + ./gui/look-up.nix ./fetchWallpaper.nix ./zsh-user.nix ./tools/core.nix @@ -72,15 +73,4 @@ in { location.latitude = 48.7; location.longitude = 9.1; - systemd.services.look-up = { - startAt = "*:30"; - serviceConfig = { - ExecStart= pkgs.writeDash "look-up" '' - set -x - eval "export '$(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(${pkgs.procps}/bin/pgrep -u ${user} ${window-manager})/environ)'" - ${pkgs.libnotify}/bin/notify-send -u critical -t 9999999 'look up once in a while' - ''; - User = user; - }; - }; }