Skip to content

Commit

Permalink
modules: remove unused plausible configs
Browse files Browse the repository at this point in the history
  • Loading branch information
stepbrobd committed Dec 2, 2024
1 parent 0fec8ed commit 6b14125
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
13 changes: 1 addition & 12 deletions hosts/server/lagern/plausible.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{
services.caddy.enable = true;

age.secrets."plausible.adm".file = ../../../secrets/plausible.adm.age;
age.secrets."plausible.goo".file = ../../../secrets/plausible.goo.age;
age.secrets."plausible.mal".file = ../../../secrets/plausible.mal.age;
age.secrets."plausible.mmd".file = ../../../secrets/plausible.mmd.age;
Expand All @@ -25,21 +24,11 @@

package = pkgs.plausible.overrideAttrs (_: {
prePatch = ''
# use the following for all versions after 2.0.0
# substituteInPlace lib/plausible_web/templates/layout/app.html.heex \
substituteInPlace lib/plausible_web/templates/layout/app.html.eex \
substituteInPlace lib/plausible_web/templates/layout/app.html.heex \
--replace-warn '</head>' '<script defer data-domain="stats.ysun.co" src="/js/script.file-downloads.hash.outbound-links.js"></script></head>'
'';
});

adminUser = {
activate = true;
email = "[email protected]";
name = "Yifei Sun";
passwordFile = config.age.secrets."plausible.adm".path;
};

mail = {
email = "[email protected]";
smtp = {
Expand Down
1 change: 0 additions & 1 deletion secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ in

"secrets/tailscale.age".publicKeys = ysun ++ [ walberla ];

"secrets/plausible.adm.age".publicKeys = ysun ++ [ lagern ];
"secrets/plausible.goo.age".publicKeys = ysun ++ [ lagern ];
"secrets/plausible.mal.age".publicKeys = ysun ++ [ lagern ];
"secrets/plausible.mmd.age".publicKeys = ysun ++ [ lagern ];
Expand Down
9 changes: 0 additions & 9 deletions secrets/plausible.adm.age

This file was deleted.

0 comments on commit 6b14125

Please sign in to comment.