alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
services.pad: migrate facts to vars
author
lassulus
date
1 year ago
(Aug 9, 2025, 2:41 PM CEST)
commit
035de370
035de370361374af3f1b7ae01e3245e72eea28fe
parent
dfeff60c
dfeff60c10da91e3b948cedfe4e1b2dada9b638f
+14
-10
1 changed file
Expand all
Collapse all
Unified
Split
2configs
services
pad
default.nix
+14
-10
2configs/services/pad/default.nix
View file
Reviewed
···
2
2
{
3
3
imports = [ ./module.nix ];
4
4
clan.hedgedoc.domain = "pad.lassul.us";
5
5
-
clan.core.facts.services.hedgedoc-github-auth = {
6
6
-
secret."hedgedoc.env" = { };
7
7
-
generator.script = ''
8
8
-
echo "$prompt_value" > "$secrets"/hedgedoc.env
9
9
-
'';
10
10
-
generator.prompt = ''
11
11
-
goto https://github.com/settings/ap:qplications/2352617 and paste the data in the following format:
12
12
-
GITHUB_CLIENT_ID=...
13
13
-
GITHUB_CLIENT_SECRET=...
5
5
+
clan.core.vars.generators.hedgedoc-github-auth = {
6
6
+
files."hedgedoc.env" = { };
7
7
+
migrateFact = "hedgedoc-github-auth";
8
8
+
prompts.env = {
9
9
+
description = ''
10
10
+
goto https://github.com/settings/applications/2352617 and paste the data in the following format:
11
11
+
GITHUB_CLIENT_ID=...
12
12
+
GITHUB_CLIENT_SECRET=...
13
13
+
'';
14
14
+
type = "multiline";
15
15
+
};
16
16
+
script = ''
17
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
18
-
config.clan.core.facts.services.hedgedoc-github-auth.secret."hedgedoc.env".path
22
22
+
config.clan.core.vars.generators.hedgedoc-github-auth.files."hedgedoc.env".path
19
23
];
20
24
}