updated config for new ZFS/NFS shares
Check NixOS configurations / eval-hosts (push) Successful in 39m58s
Check NixOS configurations / eval-hosts (push) Successful in 39m58s
This commit is contained in:
@@ -18,6 +18,7 @@ in
|
|||||||
../../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
|
||||||
];
|
];
|
||||||
|
|
||||||
# nixpkgs.config.permittedInsecurePackages = [
|
# nixpkgs.config.permittedInsecurePackages = [
|
||||||
@@ -25,6 +26,8 @@ in
|
|||||||
# ];
|
# ];
|
||||||
|
|
||||||
networking.hostName = "docker"; # Define your hostname.
|
networking.hostName = "docker"; # Define your hostname.
|
||||||
|
networking.hostId = "007f0200";
|
||||||
|
boot.zfs.forceImportRoot = false;
|
||||||
# virtualisation.docker.enable = true;
|
# virtualisation.docker.enable = true;
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -2,8 +2,14 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
fileSystems."/zfs-config" = {
|
fileSystems."/zfs-config" = {
|
||||||
device = "tank/docker/config";
|
device = "server:/tank/docker/config";
|
||||||
fsType = "zfs";
|
fsType = "nfs";
|
||||||
options = [ "zfsutil" ];
|
|
||||||
|
options = [
|
||||||
|
"nfsvers=4.2"
|
||||||
|
"_netdev"
|
||||||
|
"x-systemd.automount"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
fileSystems."/zfs-volumes" = {
|
||||||
|
device = "server:/tank/docker/volumes";
|
||||||
|
fsType = "nfs";
|
||||||
|
|
||||||
|
options = [
|
||||||
|
"nfsvers=4.2"
|
||||||
|
"_netdev"
|
||||||
|
"x-systemd.automount"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user