use tmpfsOnRoot for amd-worsktation
This commit is contained in:
parent
64fc29f902
commit
dacb7b977d
@ -52,13 +52,19 @@ in {
|
|||||||
|
|
||||||
persist = {
|
persist = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cache.clean.enable = false;
|
cache.clean.enable = true;
|
||||||
# state.files = [
|
# state.files = [
|
||||||
# "/etc/machine-id"
|
# "/etc/machine-id"
|
||||||
# "/etc/NIXOS"
|
# "/etc/NIXOS"
|
||||||
# ];
|
# ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/" = lib.mkForce {
|
||||||
|
device = "none";
|
||||||
|
options = [ "defaults" "size=4G" "mode=755" ];
|
||||||
|
fsType = "tmpfs";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/home".neededForBoot = true;
|
fileSystems."/home".neededForBoot = true;
|
||||||
fileSystems."/persist".neededForBoot = true;
|
fileSystems."/persist".neededForBoot = true;
|
||||||
boot.initrd.postDeviceCommands = lib.mkAfter ''
|
boot.initrd.postDeviceCommands = lib.mkAfter ''
|
||||||
|
@ -13,10 +13,10 @@
|
|||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
# fileSystems."/" =
|
||||||
{ device = "rpool/nixos/root";
|
# { device = "rpool/nixos/root";
|
||||||
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
# fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
fileSystems."/home" =
|
fileSystems."/home" =
|
||||||
{ device = "rpool/user/home";
|
{ device = "rpool/user/home";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user