Format repo
This commit is contained in:
parent
3169149045
commit
8160b9da0b
37 changed files with 643 additions and 392 deletions
|
@ -1,4 +1,9 @@
|
|||
{ lib, config, globals, ... }: {
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
globals,
|
||||
...
|
||||
}: {
|
||||
options.nextcloud.enable = lib.mkEnableOption "nextcloud";
|
||||
|
||||
config = lib.mkIf config.nextcloud.enable {
|
||||
|
@ -45,10 +50,12 @@
|
|||
};
|
||||
};
|
||||
|
||||
volumeMounts = [{
|
||||
name = "data";
|
||||
mountPath = "/var/www/html";
|
||||
}];
|
||||
volumeMounts = [
|
||||
{
|
||||
name = "data";
|
||||
mountPath = "/var/www/html";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
securityContext = {
|
||||
|
@ -56,14 +63,18 @@
|
|||
fsGroupChangePolicy = "OnRootMismatch";
|
||||
};
|
||||
|
||||
affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution = [{
|
||||
weight = 1;
|
||||
preference.matchExpressions = [{
|
||||
key = "storageType";
|
||||
operator = "In";
|
||||
values = [ "fast" ];
|
||||
}];
|
||||
}];
|
||||
affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution = [
|
||||
{
|
||||
weight = 1;
|
||||
preference.matchExpressions = [
|
||||
{
|
||||
key = "storageType";
|
||||
operator = "In";
|
||||
values = ["fast"];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -97,10 +108,12 @@
|
|||
};
|
||||
};
|
||||
|
||||
volumeMounts = [{
|
||||
name = "database";
|
||||
mountPath = "/pgdata";
|
||||
}];
|
||||
volumeMounts = [
|
||||
{
|
||||
name = "database";
|
||||
mountPath = "/pgdata";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
volumes.database.persistentVolumeClaim.claimName = "database";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue