use tmpfsOnRoot for amd-worsktation
This commit is contained in:
parent
64fc29f902
commit
dacb7b977d
@ -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 ''
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user