Add recurring backup job for our data to lewis.dmz via NFS
Add documentation on our Longhorn usage Migrate Hedgedoc uploads to Longhorn Fix mounting of data disk on Lewis
This commit is contained in:
parent
05a49f4e35
commit
790746a4ce
7 changed files with 117 additions and 25 deletions
|
@ -32,6 +32,7 @@ let
|
|||
"/bazarr/config"
|
||||
"/minecraft"
|
||||
"/atticd"
|
||||
"/longhorn-backup"
|
||||
];
|
||||
|
||||
nfsExports = lib.strings.concatLines (
|
||||
|
|
|
@ -35,13 +35,18 @@ in {
|
|||
};
|
||||
|
||||
config = {
|
||||
fileSystems = {
|
||||
"/" = lib.mkIf machine.isRaspberryPi {
|
||||
device = "/dev/disk/by-label/NIXOS_SD";
|
||||
fsType = "ext4";
|
||||
options = [ "noatime" ];
|
||||
};
|
||||
};
|
||||
fileSystems = lib.attrsets.mergeAttrsList [
|
||||
(lib.optionalAttrs ((! machine.isRaspberryPi) && (! cfg.kubernetesNode)) {
|
||||
"${cfg.dataMountPoint}".device = cfg.dataPartition;
|
||||
})
|
||||
(lib.optionalAttrs machine.isRaspberryPi {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-label/NIXOS_SD";
|
||||
fsType = "ext4";
|
||||
options = [ "noatime" ];
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
disko = lib.mkIf (! machine.isRaspberryPi) (if cfg.kubernetesNode then {
|
||||
devices = {
|
||||
|
|
Reference in a new issue