mirror of https://gitlab.crans.org/nounous/nixos
configuration post-factorisation
parent
549dc069f6
commit
5d99a7fea1
|
@ -2,18 +2,35 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./anubis.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./reverseproxy.nix
|
./reverseproxy.nix
|
||||||
|
|
||||||
../../../modules
|
|
||||||
../../../modules/services/acme.nix
|
|
||||||
../../../modules/services/anubis.nix
|
|
||||||
../../../modules/services/nginx.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "reverseproxy";
|
networking.hostName = "reverseproxy";
|
||||||
boot.loader.grub.devices = [ "/dev/sda" ];
|
boot.loader.grub.devices = [ "/dev/sda" ];
|
||||||
|
|
||||||
|
crans = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
id = "51";
|
||||||
|
srvNat.enable = true;
|
||||||
|
srv = {
|
||||||
|
enable = true;
|
||||||
|
interface = "ens20";
|
||||||
|
ipv4 = "185.230.79.42";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
resticClient.when = "03:42";
|
||||||
|
|
||||||
|
services = {
|
||||||
|
acme.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
{
|
{
|
||||||
users.users."nginx".home = "/var/lib/nginx";
|
users.users."nginx".home = "/var/lib/nginx";
|
||||||
|
|
||||||
services.nginx.virtualHosts =
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts =
|
||||||
let anubisConf = [
|
let anubisConf = [
|
||||||
{
|
{
|
||||||
addr = "localhost";
|
addr = "localhost";
|
||||||
|
@ -94,4 +96,5 @@
|
||||||
listen = anubisConf;
|
listen = anubisConf;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue