Compare commits
2 commits
0c372348bf
...
1bb6057a32
Author | SHA1 | Date | |
---|---|---|---|
Tigor Hutasuhut | 1bb6057a32 | ||
Tigor Hutasuhut | cae1ccb443 |
|
@ -62,12 +62,14 @@ in
|
||||||
};
|
};
|
||||||
_98-play-notification-sound-normal = {
|
_98-play-notification-sound-normal = {
|
||||||
exec = ''${pkgs.sox}/bin/play --volume 0.5 ${./gran_turismo_menu_sound_effect.mp3}'';
|
exec = ''${pkgs.sox}/bin/play --volume 0.5 ${./gran_turismo_menu_sound_effect.mp3}'';
|
||||||
app-name = "^(?!discord|TelegramDesktop|Slack|slack|Signal|Element|whatsapp-for-linux).*$";
|
app-name = "^(?!discord|TelegramDesktop|Slack|slack|Signal|Element|whatsapp-for-linux|vesktop).*$";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.swaync.Service.Environment = [ "G_MESSAGES_DEBUG=all" ];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.layerrule = [
|
wayland.windowManager.hyprland.settings.layerrule = [
|
||||||
"blur, swaync-notification-window"
|
"blur, swaync-notification-window"
|
||||||
"blur, swaync-control-center"
|
"blur, swaync-control-center"
|
||||||
|
|
|
@ -44,33 +44,33 @@ lib.mkMerge [
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.secrets."ntfy/tokens/homeserver" = {
|
# sops.secrets."ntfy/tokens/homeserver" = {
|
||||||
sopsFile = ../../secrets/ntfy.yaml;
|
# sopsFile = ../../secrets/ntfy.yaml;
|
||||||
};
|
# };
|
||||||
sops.templates."ntfy-ssh-login.sh" = {
|
# sops.templates."ntfy-ssh-login.sh" = {
|
||||||
content = builtins.readFile (
|
# content = builtins.readFile (
|
||||||
lib.meta.getExe (
|
# lib.meta.getExe (
|
||||||
pkgs.writeShellScriptBin "ntfy-ssh-login.sh" # sh
|
# pkgs.writeShellScriptBin "ntfy-ssh-login.sh" # sh
|
||||||
''
|
# ''
|
||||||
if [ "$PAM_TYPE" == "open_session" ]; then
|
# if [ "$PAM_TYPE" == "open_session" ]; then
|
||||||
${getExe pkgs.curl} -X POST \
|
# ${getExe pkgs.curl} -X POST \
|
||||||
-H "X-Priority: 4" \
|
# -H "X-Priority: 4" \
|
||||||
-H "X-Tags: warning" \
|
# -H "X-Tags: warning" \
|
||||||
-H "Authorization: Bearer ${config.sops.placeholder."ntfy/tokens/homeserver"}" \
|
# -H "Authorization: Bearer ${config.sops.placeholder."ntfy/tokens/homeserver"}" \
|
||||||
-H "X-Title: SSH login" \
|
# -H "X-Title: SSH login" \
|
||||||
-d "$PAM_USER from $PAM_RHOST" \
|
# -d "$PAM_USER from $PAM_RHOST" \
|
||||||
https://ntfy.tigor.web.id/ssh
|
# https://ntfy.tigor.web.id/ssh
|
||||||
fi
|
# fi
|
||||||
''
|
# ''
|
||||||
)
|
# )
|
||||||
);
|
# );
|
||||||
};
|
# };
|
||||||
|
#
|
||||||
security.pam.services.sshd.text = lib.mkDefault (
|
# security.pam.services.sshd.text = lib.mkDefault (
|
||||||
lib.mkAfter ''
|
# lib.mkAfter ''
|
||||||
session optional pam_exec.so ${getExe pkgs.bash} ${config.sops.templates."ntfy-ssh-login.sh".path}
|
# session optional pam_exec.so ${getExe pkgs.bash} ${config.sops.templates."ntfy-ssh-login.sh".path}
|
||||||
''
|
# ''
|
||||||
);
|
# );
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
profile.services.ntfy-sh.client.settings.subscribe = [
|
profile.services.ntfy-sh.client.settings.subscribe = [
|
||||||
|
|
Loading…
Reference in a new issue