X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Fmastodon%2Fdefault.nix;h=919bac2a148b5f078a8838048b564de9b259bb48;hp=048d845c8906b200ae33c1e7d44b6c161bd2509f;hb=20e1428fae47a5a59376b624336597eed1b605f5;hpb=50933a04f9db56a6368f40bdfe33e988d1a269df diff --git a/nixops/modules/websites/tools/mastodon/default.nix b/nixops/modules/websites/tools/mastodon/default.nix index 048d845..919bac2 100644 --- a/nixops/modules/websites/tools/mastodon/default.nix +++ b/nixops/modules/websites/tools/mastodon/default.nix @@ -1,7 +1,7 @@ { lib, pkgs, config, myconfig, mylibs, ... }: let mastodon = pkgs.callPackage ./mastodon.nix { - inherit (mylibs) fetchedGithub yarn2nixPackage; + inherit (pkgs.webapps) mastodon; env = myconfig.env.tools.mastodon; }; @@ -13,7 +13,7 @@ in { }; config = lib.mkIf cfg.enable { - deployment.keys = mastodon.keys; + mySecrets.keys = mastodon.keys; ids.uids.mastodon = myconfig.env.tools.mastodon.user.uid; ids.gids.mastodon = myconfig.env.tools.mastodon.user.gid; @@ -55,7 +55,7 @@ in { serviceConfig = { User = "mastodon"; - EnvironmentFile = "/run/keys/webapps/tools-mastodon"; + EnvironmentFile = "/var/secrets/webapps/tools-mastodon"; PrivateTmp = true; Restart = "always"; TimeoutSec = 15; @@ -88,7 +88,7 @@ in { serviceConfig = { User = "mastodon"; - EnvironmentFile = "/run/keys/webapps/tools-mastodon"; + EnvironmentFile = "/var/secrets/webapps/tools-mastodon"; PrivateTmp = true; Restart = "always"; TimeoutSec = 60; @@ -117,7 +117,7 @@ in { serviceConfig = { User = "mastodon"; - EnvironmentFile = "/run/keys/webapps/tools-mastodon"; + EnvironmentFile = "/var/secrets/webapps/tools-mastodon"; PrivateTmp = true; Restart = "always"; TimeoutSec = 15;