mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
flake update
This commit is contained in:
parent
81f98593a2
commit
62e97d324a
3 changed files with 80 additions and 62 deletions
|
|
@ -146,7 +146,6 @@ in {
|
|||
energy = {};
|
||||
group = {};
|
||||
history = {};
|
||||
image = {};
|
||||
input_boolean = {};
|
||||
input_button = {};
|
||||
input_datetime = {};
|
||||
|
|
@ -188,6 +187,7 @@ in {
|
|||
aiohomekit
|
||||
securetar
|
||||
getmac # for upnp integration
|
||||
python-otbr-api
|
||||
(aiogithubapi.overrideAttrs (_: { doInstallCheck = false; }))
|
||||
];
|
||||
extraComponents = [
|
||||
|
|
|
|||
|
|
@ -1,4 +1,19 @@
|
|||
{ config, tf,... }: {
|
||||
{ pkgs, config, tf,... }: let
|
||||
conf = import ./snakeoil-certs.nix;
|
||||
domain = conf.domain;
|
||||
unencryptedCert = with pkgs; runCommand "kanidm-cert" {
|
||||
domain = "id.gensokyo.zone";
|
||||
nativeBuildInputs = [ minica ];
|
||||
} ''
|
||||
install -d $out
|
||||
cd $out
|
||||
minica \
|
||||
--ca-key ca.key.pem \
|
||||
--ca-cert ca.cert.pem \
|
||||
--domains $domain
|
||||
cat $domain/cert.pem ca.cert.pem > $domain.pem
|
||||
'';
|
||||
in {
|
||||
networks.gensokyo = {
|
||||
tcp = [ 8080 636 ];
|
||||
};
|
||||
|
|
@ -20,6 +35,8 @@
|
|||
db_fs_type = "zfs";
|
||||
bindaddress = "${config.networks.tailscale.ipv4}:8080";
|
||||
ldapbindaddress = "${config.networks.tailscale.ipv4}:636";
|
||||
tls_chain = "${unencryptedCert}/${unencryptedCert.domain}.pem";
|
||||
tls_key = "${unencryptedCert}/${unencryptedCert.domain}/key.pem";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue