mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Convert the nextcloud module into a container
This commit is contained in:
parent
35f77628cc
commit
f0295cd9e1
8 changed files with 170 additions and 134 deletions
42
hosts/proxima/containers/nextcloud/default.nix
Normal file
42
hosts/proxima/containers/nextcloud/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
sops.secrets = {
|
||||
"nextcloud/admin-password" = { };
|
||||
"nextcloud/gmail-password" = { };
|
||||
tailscale-auth-key = { };
|
||||
};
|
||||
|
||||
containers.nextcloud = {
|
||||
autoStart = true;
|
||||
ephemeral = true;
|
||||
bindMounts = {
|
||||
"/run/secrets/nextcloud/admin-password" = { };
|
||||
"/run/secrets/nextcloud/gmail-password" = { };
|
||||
"/run/secrets/tailscale-auth-key" = { };
|
||||
"/data/nextcloud".isReadOnly = false;
|
||||
"/data/postgresql".isReadOnly = false;
|
||||
"/var/lib/tailscale" = {
|
||||
hostPath = "/var/lib/tailscale-nextcloud";
|
||||
isReadOnly = false;
|
||||
};
|
||||
};
|
||||
|
||||
specialArgs = {
|
||||
inherit (config.networking) domain;
|
||||
};
|
||||
config =
|
||||
{ domain, ... }:
|
||||
{
|
||||
system.stateVersion = "24.05";
|
||||
networking = {
|
||||
inherit domain;
|
||||
};
|
||||
|
||||
imports = [
|
||||
./nextcloud.nix
|
||||
./email-server.nix
|
||||
./tailscale.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue