complete about me config
This commit is contained in:
parent
3af4ec937b
commit
b3ae857632
3 changed files with 53 additions and 5 deletions
|
@ -13,6 +13,7 @@ in {
|
||||||
./home
|
./home
|
||||||
./layout
|
./layout
|
||||||
./matrix
|
./matrix
|
||||||
|
./me
|
||||||
./networking
|
./networking
|
||||||
./nginx
|
./nginx
|
||||||
./niri
|
./niri
|
||||||
|
|
24
modules/me/about.json
Normal file
24
modules/me/about.json
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
"name": "mira",
|
||||||
|
"pronouns": ["she/her/hers", "it/its/its"],
|
||||||
|
"queer": ["trans", "lesbian"],
|
||||||
|
"contact": {
|
||||||
|
"email": "hi@chpu.eu",
|
||||||
|
"fedi": "@mira@fedi.twoneis.site"
|
||||||
|
},
|
||||||
|
"languages": {
|
||||||
|
"german": 1.0,
|
||||||
|
"english": 0.9,
|
||||||
|
"dutch": 0.4,
|
||||||
|
"spanish": 0.1
|
||||||
|
},
|
||||||
|
"i18n": {
|
||||||
|
"currency": "EUR",
|
||||||
|
"location": "Netherlands",
|
||||||
|
"timezone": "Europe/Amsterdam"
|
||||||
|
},
|
||||||
|
"ssh": {
|
||||||
|
"id_ed25519": "https://me.twoneis.site/ssh/id_ed25519.pub",
|
||||||
|
"id_ed25519_sk": "https://me.twoneis.site/ssh/id_ed25519_sk.pub"
|
||||||
|
}
|
||||||
|
}
|
|
@ -7,21 +7,44 @@
|
||||||
cfg = config.conf.website;
|
cfg = config.conf.website;
|
||||||
me = {
|
me = {
|
||||||
name = "mira";
|
name = "mira";
|
||||||
|
pronouns = ["she/her/hers" "it/its/its"];
|
||||||
|
queer = ["trans" "lesbian"];
|
||||||
|
languages = {
|
||||||
|
german = 1.0;
|
||||||
|
english = 0.9;
|
||||||
|
dutch = 0.4;
|
||||||
|
spanish = 0.1;
|
||||||
|
};
|
||||||
|
i18n = {
|
||||||
|
timezone = "Europe/Amsterdam";
|
||||||
|
currency = "EUR";
|
||||||
|
location = "Netherlands";
|
||||||
|
};
|
||||||
|
contact = {
|
||||||
|
email = "hi@chpu.eu";
|
||||||
|
fedi = "@mira@fedi.twoneis.site";
|
||||||
|
};
|
||||||
|
ssh = {
|
||||||
|
id_ed25519 = "https://${cfg.domain.me}/ssh/id_ed25519.pub";
|
||||||
|
id_ed25519_sk = "https://${cfg.domain.me}/ssh/id_ed25519_sk.pub";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
services.nginx.virtualHosts = {
|
services.nginx.virtualHosts = {
|
||||||
${cfg.domain.me} = {
|
${cfg.domain.me} = {
|
||||||
default = true;
|
|
||||||
serverName = cfg.domain.me;
|
serverName = cfg.domain.me;
|
||||||
useACMEHost = cfg.domain.base;
|
useACMEHost = cfg.domain.base;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations = {
|
locations = {
|
||||||
"/about.json" = {
|
"/about.json" = {
|
||||||
return = builtins.toJson me;
|
return = "200 '${builtins.readFile ./about.json}'";
|
||||||
extraConfig = ''
|
};
|
||||||
default_type application/json;
|
"/ssh/id_ed25519.pub" = {
|
||||||
'';
|
return = "200 '${./id_ed25519.pub}'";
|
||||||
|
};
|
||||||
|
"/ssh/id_ed25519_sk.pub" = {
|
||||||
|
return = "200 '${./id_ed25519_sk.pub}'";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue