26 lines
535 B
Nix
26 lines
535 B
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
{
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "none";
|
|
fsType = "tmpfs";
|
|
options = [ "defaults" "noatime" "mode=755" ];
|
|
};
|
|
|
|
"/boot" = {
|
|
device = "/dev/disk/by-label/NixOS-Boot";
|
|
fsType = "vfat";
|
|
options = [ "defaults" "noatime" ];
|
|
depends = [ "/" ];
|
|
};
|
|
|
|
"/nix" = {
|
|
device = "/dev/disk/by-label/NixOS-Primary";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=@nix" "compress=zstd" "noatime" ];
|
|
};
|
|
};
|
|
|
|
zramSwap.enable = true;
|
|
}
|