Compare commits
5 Commits
1834713f98
...
423ea62216
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
423ea62216 | ||
|
|
d0a9202615 | ||
|
|
4663a710dc | ||
|
|
c95209cf7c | ||
|
|
206e956dfb |
8
flake.lock
generated
8
flake.lock
generated
@@ -267,11 +267,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1734875198,
|
"lastModified": 1735841882,
|
||||||
"narHash": "sha256-nTrmbQjVANsbTJ+uzL95MXZq8nTbJ/Ar4qfeHMfVtlE=",
|
"narHash": "sha256-Fn7mOUV189e/AIzij1n6kvNOROOWA3qRY/8D4bcJRXk=",
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"rev": "18225f1644a3fba957ed27d7ec92d03a3eea5579",
|
"rev": "8952e41601f633eee9ec0ab6f8dd0d2783581b8d",
|
||||||
"revCount": 362,
|
"revCount": 364,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://gitea@git.ppp.pm:1122/alex/whib.git"
|
"url": "ssh://gitea@git.ppp.pm:1122/alex/whib.git"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
hardware.saleae-logic.enable = true;
|
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
@@ -27,7 +25,6 @@
|
|||||||
pkgs.htop
|
pkgs.htop
|
||||||
pkgs.onlyoffice-bin
|
pkgs.onlyoffice-bin
|
||||||
pkgs.wdisplays
|
pkgs.wdisplays
|
||||||
pkgs.saleae-logic-2
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
group = "nginx";
|
group = "nginx";
|
||||||
};
|
};
|
||||||
|
|
||||||
"whib-api.ppp.pm" = {
|
"api.whib.ppp.pm" = {
|
||||||
webroot = "/var/lib/acme/acme-challenge/";
|
webroot = "/var/lib/acme/acme-challenge/";
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
pppdotpm-site.enable = true;
|
pppdotpm-site.enable = true;
|
||||||
|
whib-backend.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,8 +7,6 @@
|
|||||||
let
|
let
|
||||||
conf = config.mod.gitea;
|
conf = config.mod.gitea;
|
||||||
gitDomain = "git.${conf.baseDomain}";
|
gitDomain = "git.${conf.baseDomain}";
|
||||||
|
|
||||||
nginxEnable = config.mod.nginx.enable;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
@@ -37,8 +35,12 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf (conf.enable && nginxEnable) {
|
config = lib.mkIf conf.enable {
|
||||||
assertions = [
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = config.services.nginx.enable;
|
||||||
|
message = "Option 'config.services.nginx' must be enabled";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
assertion = conf.baseDomain != "";
|
assertion = conf.baseDomain != "";
|
||||||
message = "Option 'mod.gitea.baseDomain' cannot be empty";
|
message = "Option 'mod.gitea.baseDomain' cannot be empty";
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
enabled = config.mod.pppdotpm-site.enable;
|
enabled = config.mod.pppdotpm-site.enable;
|
||||||
|
|
||||||
nginxEnabled = config.mod.nginx.enable;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ inputs.pppdotpm-site.nixosModules.default ];
|
imports = [ inputs.pppdotpm-site.nixosModules.default ];
|
||||||
@@ -18,7 +16,14 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf (enabled && nginxEnabled) {
|
config = lib.mkIf enabled {
|
||||||
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = config.services.nginx.enable;
|
||||||
|
message = "Option 'config.services.nginx' must be enabled";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
services.pppdotpm-site = {
|
services.pppdotpm-site = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "ppp.pm";
|
domain = "ppp.pm";
|
||||||
|
|||||||
@@ -15,11 +15,18 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf enabled {
|
config = lib.mkIf enabled {
|
||||||
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = config.services.nginx.enable;
|
||||||
|
message = "Option 'config.services.nginx' must be enabled";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
services.whib-backend = {
|
services.whib-backend = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
domain = "whib-api.ppp.pm";
|
domain = "api.whib.ppp.pm";
|
||||||
useACMEHost = "whib-api.ppp.pm";
|
useACMEHost = "api.whib.ppp.pm";
|
||||||
|
|
||||||
backend = {
|
backend = {
|
||||||
signingKey = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.whib-signing-key.path})";
|
signingKey = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.whib-signing-key.path})";
|
||||||
@@ -44,6 +51,9 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
grafana = {
|
grafana = {
|
||||||
|
domain = "grafana.whib.ppp.pm";
|
||||||
|
useACMEHost = "grafana.whib.ppp.pm";
|
||||||
|
|
||||||
password = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.whib-grafana-password.path})";
|
password = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.whib-grafana-password.path})";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -51,11 +61,12 @@ in
|
|||||||
age.secrets = {
|
age.secrets = {
|
||||||
"whib-signing-key".file = ../../../../secrets/tadpole/whib-signing-key.age;
|
"whib-signing-key".file = ../../../../secrets/tadpole/whib-signing-key.age;
|
||||||
"whib-postgres-password".file = ../../../../secrets/tadpole/whib-postgres-password.age;
|
"whib-postgres-password".file = ../../../../secrets/tadpole/whib-postgres-password.age;
|
||||||
|
"whib-grafana-password".file = ../../../../secrets/tadpole/whib-grafana-password.age;
|
||||||
|
|
||||||
"whib-gpg-key".file = ../../../../secrets/tadpole/whib-gpg-key.age;
|
"whib-gpg-key".file = ../../../../secrets/tadpole/whib-gpg-key.age;
|
||||||
"whib-backblaze-bucket".file = ../../../../secrets/tadpole/whib-backblaze-bucket.age;
|
"whib-backblaze-bucket".file = ../../../../secrets/tadpole/whib-backblaze-bucket.age;
|
||||||
"whib-backblaze-key-id".file = ../../../../secrets/tadpole/whib-backblaze-key-id.age;
|
"whib-backblaze-key-id".file = ../../../../secrets/tadpole/whib-backblaze-key-id.age;
|
||||||
"whib-backblaze-key".file = ../../../../secrets/tadpole/whib-backblaze-key.age;
|
"whib-backblaze-key".file = ../../../../secrets/tadpole/whib-backblaze-key.age;
|
||||||
"whib-grafana-password".file = ../../../../secrets/tadpole/whib-grafana-password.age;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,9 @@ in {
|
|||||||
"tadpole/alex.tadpole-git.ppp.pm.pub.age".publicKeys = [ tadpole alex ];
|
"tadpole/alex.tadpole-git.ppp.pm.pub.age".publicKeys = [ tadpole alex ];
|
||||||
"tadpole/gitea-dbpassword.age".publicKeys = [ tadpole alex ];
|
"tadpole/gitea-dbpassword.age".publicKeys = [ tadpole alex ];
|
||||||
|
|
||||||
|
"tadpole/whib-signing-key.age".publicKeys = [ tadpole alex ];
|
||||||
|
"tadpole/whib-postgres-password.age".publicKeys = [ tadpole alex ];
|
||||||
|
"tadpole/whib-grafana-password.age".publicKeys = [ tadpole alex ];
|
||||||
"tadpole/whib-gpg-key.age".publicKeys = [ tadpole alex ];
|
"tadpole/whib-gpg-key.age".publicKeys = [ tadpole alex ];
|
||||||
"tadpole/whib-backblaze-bucket.age".publicKeys = [ tadpole alex ];
|
"tadpole/whib-backblaze-bucket.age".publicKeys = [ tadpole alex ];
|
||||||
"tadpole/whib-backblaze-key-id.age".publicKeys = [ tadpole alex ];
|
"tadpole/whib-backblaze-key-id.age".publicKeys = [ tadpole alex ];
|
||||||
|
|||||||
BIN
secrets/tadpole/whib-grafana-password.age
Normal file
BIN
secrets/tadpole/whib-grafana-password.age
Normal file
Binary file not shown.
7
secrets/tadpole/whib-postgres-password.age
Normal file
7
secrets/tadpole/whib-postgres-password.age
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 5R7G9A WqkH9G2AGAcQfa9u+w6+QVXYVlozt0JsB/icILH/Jnc
|
||||||
|
SGhXQ33eRtVtIEKdZCmpyxNUtFgtZhGUs9QX20GbHRg
|
||||||
|
-> ssh-ed25519 +oNaHQ k66ZToSUzHxDm0yZkI4+Gase/Q5GJrsB7c6+LvmgGSg
|
||||||
|
6x9dzdloKJT2Tcawn4m2d518KUjdINGi4u+PFvMt9tQ
|
||||||
|
--- 395jqjDR3lBIIPOUIlnOJW/048qeJPC5CJbMJdpSjTo
|
||||||
|
<EFBFBD>ϛ<EFBFBD><uI<75>X"<22><0C>^C<12>j};<3B><><EFBFBD><EFBFBD>Kd<4B><64><06><>ٗX<D997><58>b<EFBFBD><0C><><EFBFBD>W<>,{7u+x<>L]<5D>
|
||||||
8
secrets/tadpole/whib-signing-key.age
Normal file
8
secrets/tadpole/whib-signing-key.age
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 5R7G9A ncGAywK2O0Geyy5E9HmRdDCmCD7RwmflyyBXFKH4KSc
|
||||||
|
4Izx8nT/k5yOMOG4InifQw+wzEDe9PqMyeF3LEicOKE
|
||||||
|
-> ssh-ed25519 +oNaHQ cPf/X971sb4pNKz9t0W318EpY3XJNB/OId7nGZ/ooXc
|
||||||
|
Vp5x6PZML0jtPEjuaDo7KjtHdKv5SyPAS2+Fvhjbro8
|
||||||
|
--- 4jGA5763tvEcNDmNnYaoCfw99xROjqpKW0dMG23BqbE
|
||||||
|
<1F><><EFBFBD>j^t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B%<25><>a<><61><EFBFBD><EFBFBD>$<24><>8m}-LbM<62>n<EFBFBD><6E><18><1C>R<02><>cZ<63><5A><EFBFBD>=<3D><0C>$x<18><>}<7D><>)PH<50>{X<>3<EFBFBD>ᏻ<EFBFBD><E18FBB><EFBFBD>V<EFBFBD><15><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><12><><EFBFBD>Օ<EFBFBD>6Rs<52><73><EFBFBD><12><>r<EFBFBD><72>b<EFBFBD>nl<6E>]<5D><>/Ȏe@/<2F>*<2A><><EFBFBD>:<3A>ڸ<EFBFBD><DAB8>V~<7E><>V<EFBFBD>a]`<60><19>
|
||||||
|
<EFBFBD><EFBFBD><EFBFBD>=ٿv<D9BF>z\<5C>
|
||||||
Reference in New Issue
Block a user