This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

services.pad: migrate facts to vars

+14 -10
+14 -10
2configs/services/pad/default.nix
··· 2 2 { 3 3 imports = [ ./module.nix ]; 4 4 clan.hedgedoc.domain = "pad.lassul.us"; 5 - clan.core.facts.services.hedgedoc-github-auth = { 6 - secret."hedgedoc.env" = { }; 7 - generator.script = '' 8 - echo "$prompt_value" > "$secrets"/hedgedoc.env 9 - ''; 10 - generator.prompt = '' 11 - goto https://github.com/settings/ap:qplications/2352617 and paste the data in the following format: 12 - GITHUB_CLIENT_ID=... 13 - GITHUB_CLIENT_SECRET=... 5 + clan.core.vars.generators.hedgedoc-github-auth = { 6 + files."hedgedoc.env" = { }; 7 + migrateFact = "hedgedoc-github-auth"; 8 + prompts.env = { 9 + description = '' 10 + goto https://github.com/settings/applications/2352617 and paste the data in the following format: 11 + GITHUB_CLIENT_ID=... 12 + GITHUB_CLIENT_SECRET=... 13 + ''; 14 + type = "multiline"; 15 + }; 16 + script = '' 17 + cp "$prompts"/env "$out"/hedgedoc.env 14 18 ''; 15 19 }; 16 20 # https://github.com/settings/applications/2352617 17 21 systemd.services.hedgedoc.serviceConfig.EnvironmentFile = [ 18 - config.clan.core.facts.services.hedgedoc-github-auth.secret."hedgedoc.env".path 22 + config.clan.core.vars.generators.hedgedoc-github-auth.files."hedgedoc.env".path 19 23 ]; 20 24 }