Update NFS mounts and Docker configuration for photos
- Update `photos.nix` to use `configVars.locations.photosDataMountPoint` - Add `photosDataMountPoint` to `docker.nix` and configure bind mount
This commit is contained in:
parent
d65f5e156b
commit
6d4b95fd2c
|
@ -1,9 +1,9 @@
|
||||||
{
|
{configVars, ...}: let
|
||||||
fileSystems."/media/photos" = {
|
photosDataMountPoint = configVars.locations.photosDataMountPoint;
|
||||||
|
in {
|
||||||
|
fileSystems.${photosDataMountPoint} = {
|
||||||
device = "10.0.10.30:/mnt/photos";
|
device = "10.0.10.30:/mnt/photos";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = ["noatime" "_netdev" "ro"];
|
options = ["noatime" "_netdev" "ro"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
gatewayIp = configVars.networking.addresses.gateway.ip;
|
gatewayIp = configVars.networking.addresses.gateway.ip;
|
||||||
dockerContainerData = configVars.locations.dockerContainerData;
|
dockerContainerData = configVars.locations.dockerContainerData;
|
||||||
mediaDataMountPoint = configVars.locations.mediaDataMountPoint;
|
mediaDataMountPoint = configVars.locations.mediaDataMountPoint;
|
||||||
|
photosDataMountPoint = configVars.locations.photosDataMountPoint;
|
||||||
pubKeys = lib.filesystem.listFilesRecursive ../../users/keys;
|
pubKeys = lib.filesystem.listFilesRecursive ../../users/keys;
|
||||||
arion = inputs.arion;
|
arion = inputs.arion;
|
||||||
sops-nix = inputs.sops-nix;
|
sops-nix = inputs.sops-nix;
|
||||||
|
@ -73,6 +74,10 @@ in {
|
||||||
hostBridge = "br0";
|
hostBridge = "br0";
|
||||||
nixpkgs = pkgs.path;
|
nixpkgs = pkgs.path;
|
||||||
bindMounts = {
|
bindMounts = {
|
||||||
|
"/media/photos" = {
|
||||||
|
hostPath = photosDataMountPoint;
|
||||||
|
isReadOnly = false;
|
||||||
|
};
|
||||||
"/dev/dri" = {
|
"/dev/dri" = {
|
||||||
hostPath = "/dev/dri";
|
hostPath = "/dev/dri";
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
|
|
|
@ -47,14 +47,17 @@ in {
|
||||||
../common/optional/pipewire.nix
|
../common/optional/pipewire.nix
|
||||||
../common/optional/openssh.nix
|
../common/optional/openssh.nix
|
||||||
../common/optional/dwm.nix
|
../common/optional/dwm.nix
|
||||||
../common/optional/nfs-mounts/media.nix
|
|
||||||
../common/optional/nfs-mounts/homeshare.nix
|
|
||||||
../common/optional/printing.nix
|
../common/optional/printing.nix
|
||||||
../common/optional/docker.nix
|
../common/optional/docker.nix
|
||||||
../common/optional/nix-ld.nix
|
../common/optional/nix-ld.nix
|
||||||
../common/optional/gaming.nix
|
../common/optional/gaming.nix
|
||||||
../common/optional/restic-backup.nix
|
../common/optional/restic-backup.nix
|
||||||
|
|
||||||
|
# nfs mounts
|
||||||
|
../common/optional/nfs-mounts/media.nix
|
||||||
|
../common/optional/nfs-mounts/homeshare.nix
|
||||||
|
../common/optional/nfs-mounts/photos.nix
|
||||||
|
|
||||||
# nixos-containers
|
# nixos-containers
|
||||||
../common/optional/nixos-containers/nix-bitcoin.nix
|
../common/optional/nixos-containers/nix-bitcoin.nix
|
||||||
../common/optional/nixos-containers/postgres.nix
|
../common/optional/nixos-containers/postgres.nix
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
bitcoinNodeContainerData = "/media/main-ssd/nix-bitcoin";
|
bitcoinNodeContainerData = "/media/main-ssd/nix-bitcoin";
|
||||||
backupContainerData = "/media/main-ssd/backup";
|
backupContainerData = "/media/main-ssd/backup";
|
||||||
postgresContainerData = "/media/main-ssd/postgresql";
|
postgresContainerData = "/media/main-ssd/postgresql";
|
||||||
|
photosDataMountPoint = "/media/photos";
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue