colin
43fa7fdd9f
- shorter. - congruent with `nixos-rebuild .` choosing what to build based on `hostname`. - more widely used within other nix repos i've seen. - more accurate in the case that i migrate a host to a different machine (which i plan to do with servo).
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
# root is a tmpfs so that we have an ephemeral system ("impermanence" handles the state)
|
|
fileSystems."/" = {
|
|
device = "none";
|
|
fsType = "tmpfs";
|
|
options = [
|
|
"mode=755"
|
|
"size=1G"
|
|
"defaults"
|
|
];
|
|
};
|
|
# we need a /tmp of default size (half RAM) for building large nix things
|
|
fileSystems."/tmp" = {
|
|
device = "none";
|
|
fsType = "tmpfs";
|
|
options = [
|
|
"mode=777"
|
|
"defaults"
|
|
];
|
|
};
|
|
|
|
fileSystems."/nix" = {
|
|
device = "/dev/disk/by-uuid/75230e56-2c69-4e41-b03e-68475f119980";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"compress=zstd"
|
|
"defaults"
|
|
];
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-uuid/BD79-D6BB";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
# fileSystems."/nix" = {
|
|
# device = "/dev/disk/by-uuid/5a7fa69c-9394-8144-a74c-6726048b129f";
|
|
# fsType = "btrfs";
|
|
# };
|
|
|
|
# fileSystems."/boot" = {
|
|
# device = "/dev/disk/by-uuid/4302-1685";
|
|
# fsType = "vfat";
|
|
# };
|
|
|
|
# fileSystems."/" = {
|
|
# device = "none";
|
|
# fsType = "tmpfs";
|
|
# options = [
|
|
# "mode=755"
|
|
# "size=1G"
|
|
# "defaults"
|
|
# ];
|
|
# };
|
|
}
|