use tmpfsOnRoot for amd-worsktation

This commit is contained in:
Dmitriy Kholkin 2023-04-08 17:57:02 +03:00
parent 64fc29f902
commit dacb7b977d
2 changed files with 11 additions and 5 deletions

View File

@ -52,13 +52,19 @@ in {
persist = {
enable = true;
cache.clean.enable = false;
cache.clean.enable = true;
# state.files = [
# "/etc/machine-id"
# "/etc/NIXOS"
# ];
};
fileSystems."/" = lib.mkForce {
device = "none";
options = [ "defaults" "size=4G" "mode=755" ];
fsType = "tmpfs";
};
fileSystems."/home".neededForBoot = true;
fileSystems."/persist".neededForBoot = true;
boot.initrd.postDeviceCommands = lib.mkAfter ''

View File

@ -13,10 +13,10 @@
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "rpool/nixos/root";
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
};
# fileSystems."/" =
# { device = "rpool/nixos/root";
# fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
# };
fileSystems."/home" =
{ device = "rpool/user/home";