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

View file

@ -9,24 +9,20 @@
boot.kernelModules = [ ]; boot.kernelModules = [ ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = # https://elis.nu/blog/2020/05/nixos-tmpfs-as-root/
{ fileSystems."/" = {
device = "none"; device = "none";
fsType = "tmpfs"; 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";
device = "/dev/disk/by-label/BOOT"; };
fsType = "vfat"; fileSystems."/nix" = {
}; device = "/dev/disk/by-label/nix";
fsType = "ext4";
fileSystems."/nix" = };
{
device = "/dev/disk/by-label/nix";
fsType = "ext4";
};
swapDevices = [ swapDevices = [
{ {