Compare commits

..

No commits in common. "d49478741fd06b0ee70d3f8d600bb1f31a30f806" and "78207fdbe77d244c1f90b893b0f103ee5699fc39" have entirely different histories.

3 changed files with 3 additions and 25 deletions

View file

@ -14,9 +14,6 @@ in
enable = true;
systemd.variables = [ "all" ];
settings = {
env = [
"DBUS_SESSION_BUS_ADDRESS,unix:path=/run/user/${toString config.profile.user.uid}/bus"
];
exec-once = lib.mkOrder 5 [
''${pkgs.dbus}/bin/dbus-update-activation-environment --all''
];

View file

@ -10,8 +10,8 @@ in
ntfy-sh
];
# wayland.windowManager.hyprland.settings.exec-once = [
# "ntfy subscribe --config /etc/ntfy/client.yml --from-config"
# ];
wayland.windowManager.hyprland.settings.exec-once = [
"ntfy subscribe --config /etc/ntfy/client.yml --from-config"
];
};
}

View file

@ -50,25 +50,6 @@ lib.mkMerge [
NTFY_CONFIG = configPath;
};
systemd.services.ntfy-client = {
enable = true;
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
environment = {
DISPLAY = ":0";
DBUS_SESSION_BUS_ADDRESS = "unix:path=/run/user/${toString config.profile.user.uid}/bus";
};
restartTriggers = [ (builtins.toJSON cfg.client.settings) ];
path = with pkgs; [ bash libnotify ];
description = "ntfy-sh client";
serviceConfig = {
ExecStart = "${pkgs.ntfy-sh}/bin/ntfy --debug subscribe --config /etc/ntfy/client.yml --from-config";
Restart = "on-failure";
User = config.profile.user.uid;
Group = config.profile.user.gid;
};
};
sops = {
secrets =
let