mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
Add paperless-ngx container
This commit is contained in:
parent
65bd45bfac
commit
2c347bab77
8 changed files with 125 additions and 15 deletions
|
|
@ -7,26 +7,21 @@
|
|||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/lib/tailscale-nextcloud - - -"
|
||||
"d /data/nextcloud - - -"
|
||||
"d /var/lib/tailscale-nextcloud - - -"
|
||||
];
|
||||
|
||||
networking.useNetworkd = true;
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks."40-eno1" = {
|
||||
matchConfig.Name = "eno1";
|
||||
networkConfig.DHCP = "yes";
|
||||
};
|
||||
};
|
||||
|
||||
containers.nextcloud = {
|
||||
autoStart = true;
|
||||
ephemeral = true;
|
||||
macvlans = [ "eno1" ];
|
||||
|
||||
bindMounts = {
|
||||
# Secrets
|
||||
"/run/secrets/nextcloud".isReadOnly = false;
|
||||
"/run/secrets/tailscale-auth-key" = { };
|
||||
|
||||
# State
|
||||
"/data/nextcloud".isReadOnly = false;
|
||||
"/var/lib/tailscale" = {
|
||||
hostPath = "/var/lib/tailscale-nextcloud";
|
||||
|
|
@ -41,7 +36,7 @@
|
|||
{ domain, ... }:
|
||||
{
|
||||
system.stateVersion = "24.05";
|
||||
|
||||
|
||||
networking = {
|
||||
inherit domain;
|
||||
useNetworkd = true;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
enable = true;
|
||||
authKeyFile = "/run/secrets/tailscale-auth-key";
|
||||
useRoutingFeatures = "server";
|
||||
openFirewall = true;
|
||||
interfaceName = "userspace-networking";
|
||||
extraUpFlags = [ "--ssh" ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue