Nextcloud improvements part 1 #81
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ result
|
|||||||
.direnv/
|
.direnv/
|
||||||
book/
|
book/
|
||||||
fanny-efi-vars.fd
|
fanny-efi-vars.fd
|
||||||
|
nix-store-overlay.img
|
||||||
|
|||||||
@@ -20,6 +20,13 @@ in
|
|||||||
inputs.self.nixosModules.malobeo.metrics
|
inputs.self.nixosModules.malobeo.metrics
|
||||||
];
|
];
|
||||||
|
|
||||||
|
virtualisation.vmVariantWithDisko = {
|
||||||
|
virtualisation = {
|
||||||
|
memorySize = 4096;
|
||||||
|
cores = 3;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
malobeo.metrics = {
|
malobeo.metrics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enablePromtail = true;
|
enablePromtail = true;
|
||||||
@@ -56,6 +63,11 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"L /var/lib/microvms/data - - - - /data/microvms"
|
||||||
|
"d /data/microvms 0755 root root" #not needed for real host?
|
||||||
|
];
|
||||||
|
|
||||||
malobeo.initssh = {
|
malobeo.initssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
authorizedKeys = sshKeys.admins;
|
authorizedKeys = sshKeys.admins;
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ in
|
|||||||
mountOptions = [ "umask=0077" ];
|
mountOptions = [ "umask=0077" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
encryptedSwap = {
|
encryptedSwap = lib.mkIf cfg.encryption {
|
||||||
size = cfg.root.swap;
|
size = cfg.root.swap;
|
||||||
content = {
|
content = {
|
||||||
type = "swap";
|
type = "swap";
|
||||||
@@ -252,6 +252,10 @@ in
|
|||||||
type = "zfs_fs";
|
type = "zfs_fs";
|
||||||
mountpoint = "/data";
|
mountpoint = "/data";
|
||||||
};
|
};
|
||||||
|
"encrypted/data/microvm" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
mountpoint = "/data/microvm";
|
||||||
|
};
|
||||||
reserved = {
|
reserved = {
|
||||||
# for cow delete if pool is full
|
# for cow delete if pool is full
|
||||||
options = {
|
options = {
|
||||||
|
|||||||
@@ -70,6 +70,13 @@ rec {
|
|||||||
proto = "virtiofs";
|
proto = "virtiofs";
|
||||||
socket = "var.socket";
|
socket = "var.socket";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
source = "/var/lib/microvms/data/${hostName}";
|
||||||
|
mountPoint = "/data";
|
||||||
|
tag = "data";
|
||||||
|
proto = "virtiofs";
|
||||||
|
socket = "microdata.socket";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
interfaces = [
|
interfaces = [
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ with lib;
|
|||||||
hostName = "cloud.malobeo.org";
|
hostName = "cloud.malobeo.org";
|
||||||
config.adminpassFile = config.sops.secrets.nextcloudAdminPass.path;
|
config.adminpassFile = config.sops.secrets.nextcloudAdminPass.path;
|
||||||
#https = true; #disable for testing
|
#https = true; #disable for testing
|
||||||
|
datadir = "/data/services/nextcloud/";
|
||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
config.dbtype = "pgsql";
|
config.dbtype = "pgsql";
|
||||||
configureRedis = true;
|
configureRedis = true;
|
||||||
@@ -55,6 +56,12 @@ with lib;
|
|||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
trusted_domains = ["10.0.0.13"];
|
trusted_domains = ["10.0.0.13"];
|
||||||
|
"maintenance_window_start" = "1";
|
||||||
|
"default_phone_region" = "DE";
|
||||||
|
};
|
||||||
|
phpOptions = {
|
||||||
|
"realpath_cache_size" = "0";
|
||||||
|
"opcache.interned_strings_buffer" = "23";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user