moved docker data mounts into one module
Check NixOS configurations / eval-hosts (push) Failing after 14m16s
Check NixOS configurations / eval-hosts (push) Failing after 14m16s
This commit is contained in:
@@ -17,9 +17,9 @@ in
|
|||||||
../../common/configuration.nix
|
../../common/configuration.nix
|
||||||
../../modules/nix/cache-client.nix
|
../../modules/nix/cache-client.nix
|
||||||
../../modules/nix/remote-builder-client.nix
|
../../modules/nix/remote-builder-client.nix
|
||||||
../../modules/nix/mount-docker-config.nix
|
# ../../modules/nix/mount-docker-config.nix
|
||||||
../../modules/nix/mount-docker-volumes.nix
|
# ../../modules/nix/mount-docker-volumes.nix
|
||||||
../../modules/nix/mount-docker-databases.nix
|
../../modules/nix/docker-data.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# nixpkgs.config.permittedInsecurePackages = [
|
# nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ services.nfs.server = {
|
|||||||
/tank/docker/config 192.168.2.0/24(rw,sync,no_subtree_check,no_root_squash)
|
/tank/docker/config 192.168.2.0/24(rw,sync,no_subtree_check,no_root_squash)
|
||||||
/tank/docker/volumes 192.168.2.0/24(rw,sync,no_subtree_check,no_root_squash)
|
/tank/docker/volumes 192.168.2.0/24(rw,sync,no_subtree_check,no_root_squash)
|
||||||
/tank/docker/databases 192.168.2.0/24(rw,sync,no_subtree_check,no_root_squash)
|
/tank/docker/databases 192.168.2.0/24(rw,sync,no_subtree_check,no_root_squash)
|
||||||
|
/tank/docker/nextcloud-data 192.168.2.0/24(rw,sync,no_subtree_check,no_root_squash)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
fileSystems."/mnt/docker-config" = {
|
||||||
|
device = "server:/tank/docker/config";
|
||||||
|
fsType = "nfs";
|
||||||
|
|
||||||
|
options = [
|
||||||
|
"nfsvers=4.2"
|
||||||
|
"_netdev"
|
||||||
|
"x-systemd.automount"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/mnt/docker-databases" = {
|
||||||
|
device = "server:/tank/docker/databases";
|
||||||
|
fsType = "nfs";
|
||||||
|
|
||||||
|
options = [
|
||||||
|
"nfsvers=4.2"
|
||||||
|
"_netdev"
|
||||||
|
"x-systemd.automount"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/mnt/docker-volumes" = {
|
||||||
|
device = "server:/tank/docker/volumes";
|
||||||
|
fsType = "nfs";
|
||||||
|
|
||||||
|
options = [
|
||||||
|
"nfsvers=4.2"
|
||||||
|
"_netdev"
|
||||||
|
"x-systemd.automount"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user