From daf5dbff47f37f93f3ed7d85bc3fbef53e65b2b2 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Tue, 18 Jul 2023 21:57:39 -0500 Subject: [PATCH] feat: tiny Signed-off-by: jolheiser --- apps/default.nix | 1 + apps/tiny.nix | 28 ++++++++++++++++++++++++++++ flake.lock | 6 +++--- flake.nix | 1 + secrets/secrets.nix | 1 + secrets/shared/irc-pw.age | Bin 0 -> 534 bytes 6 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 apps/tiny.nix create mode 100644 secrets/shared/irc-pw.age diff --git a/apps/default.nix b/apps/default.nix index 467d2cc..7baee6b 100644 --- a/apps/default.nix +++ b/apps/default.nix @@ -19,6 +19,7 @@ ./oh-my-posh.nix ./spotifyd.nix ./ssh.nix + ./tiny.nix ./wezterm.nix ./zoxide.nix ]; diff --git a/apps/tiny.nix b/apps/tiny.nix new file mode 100644 index 0000000..cd30315 --- /dev/null +++ b/apps/tiny.nix @@ -0,0 +1,28 @@ +{ + programs.tiny = { + enable = true; + settings = { + servers = [ + { + addr = "irc.libera.chat"; + port = 6697; + tls = true; + realname = "jolheiser"; + nicks = ["jolheiser"]; + alias = "LiberaChat"; + #join = ["#gitea"]; + sasl = { + username = "jolheiser"; + password = { + command = "cat /run/agenix/irc-pw"; + }; + }; + } + ]; + defaults = { + nicks = ["jolheiser"]; + realname = "jolheiser"; + }; + }; + }; +} diff --git a/flake.lock b/flake.lock index 70dfc9e..c0906fa 100644 --- a/flake.lock +++ b/flake.lock @@ -117,11 +117,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1688894907, - "narHash": "sha256-U7hEDDhzAhLp6T+DEUbfwAsL+BtqFFGn+S1pa/0XrZY=", + "lastModified": 1689631193, + "narHash": "sha256-AGSkBZaiTODQc8eT1rZDrQIjtb8JtFwJ0wVPzArlrnM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "4ddf98349c793377c76806ebfbdfb2b96dd4ef5d", + "rev": "57695599bdc4f7bfe5d28cfa23f14b3d8bdf8a5f", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 5fc780e..8c7a4c6 100644 --- a/flake.nix +++ b/flake.nix @@ -57,6 +57,7 @@ ssh-config = userSecret ./secrets/shared/ssh-config.age; ssh-config-work = userSecret ./secrets/shared/ssh-config-work.age; spotify-pw = userSecret ./secrets/shared/spotify-pw.age; + irc-pw = userSecret ./secrets/shared/irc-pw.age; }; }; }; diff --git a/secrets/secrets.nix b/secrets/secrets.nix index f4071f5..6ac0e02 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -8,4 +8,5 @@ in { "shared/ssh-config.age".publicKeys = all; "shared/ssh-config-work.age".publicKeys = all; "shared/spotify-pw.age".publicKeys = all; + "shared/irc-pw.age".publicKeys = all; } diff --git a/secrets/shared/irc-pw.age b/secrets/shared/irc-pw.age new file mode 100644 index 0000000000000000000000000000000000000000..5993ea1e0ba2d98ee0571358653997f6dbbea20d GIT binary patch literal 534 zcmZ9`yRMU9003YUH%xRoZYIP*O)7FLg)T;VXlV-+O8L2M<=O(J+~Hss7iV9<#MQ(} zM-vAh;0z8fzJU%W#>K=%UC$GI-!}9SKXr?XtlA&bC&wa08yrHO!ezNbe2<_gd<;*S zXoQCF(!q#Hy2fcW6-{Z@t*d>*2pdnbL0AqIP?Q^>2W=(nTPPz}oxP9~PA8~_4W-8D zoQNK^gOKTx2`aG@9M7z!fhUXWS_h&t7JmLL^Bzv2dFx_FKIUYvTGZOC z$W=ayoSk@H@j38fxf6=;5Q2K7I6*V5>%L|o1VP{(=k}|mt}P^00c7agLNrO#IFe** zb(nGgPG#A5LE(}y^y2c~+jn1X+_?&Feg6Zh^40CnZ_eHyg!@-FKfONt$*q1|QsCo< N-!H#@JN>##{{`s^v-|)6 literal 0 HcmV?d00001