dacbert: move nfsroot, remove separate /nix/store mount

This commit is contained in:
Astro 2022-06-09 01:41:33 +02:00
parent b35eb054cd
commit 6ede6e89b0
3 changed files with 8 additions and 8 deletions

View File

@ -33,7 +33,7 @@
# fkms-3d.enable = true;
# };
fileSystems."/" = {
device = "${hostRegistry.hosts.nix-build.ip4}:/var/lib/nfsroot/dacbert";
device = "${hostRegistry.hosts.nfsroot.ip4}:/var/lib/nfsroot/dacbert";
fsType = "nfs";
options = [ "nfsvers=3" "proto=tcp" "nolock" "hard" "async" "rw" ];
};

View File

@ -32,6 +32,13 @@
firewall.enable = false;
};
# mount the server's /nix/store
fileSystems."/nix/store" = {
device = "${hostRegistry.hosts.nix-build.ip4}:/nix/store";
fsType = "nfs";
options = [ "nfsvers=3" "proto=tcp" "nolock" "hard" "async" "ro" ];
neededForBoot = true;
};
# volatile system: everything is tmpfs
fileSystems."/" = {
fsType = "tmpfs";

View File

@ -37,13 +37,6 @@
tmpOnTmpfs = true;
};
fileSystems."/nix/store" = {
device = "${hostRegistry.hosts.nix-build.ip4}:/nix/store";
fsType = "nfs";
options = [ "nfsvers=3" "proto=tcp" "nolock" "hard" "async" "ro" ];
neededForBoot = true;
};
hardware.deviceTree.enable = true;
environment.systemPackages = with pkgs; [