This commit is contained in:
Casper V. Kristensen 2023-08-11 17:51:39 +02:00
parent aab3016621
commit f1777279c8

View file

@ -9,21 +9,17 @@
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
# https://elis.nu/blog/2020/05/nixos-tmpfs-as-root/
fileSystems."/" = {
device = "none";
fsType = "tmpfs";
options = [ "defaults" "size=2G" "mode=755" ];
options = [ "defaults" "size=2G" "mode=755" ]; # mode=755 so only root can write to those files
};
fileSystems."/boot" =
{
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
fileSystems."/nix" =
{
fileSystems."/nix" = {
device = "/dev/disk/by-label/nix";
fsType = "ext4";
};