2022-06-24 04:21:01 +00:00
|
|
|
{ ... }:
|
2022-04-27 06:38:39 +00:00
|
|
|
|
|
|
|
{
|
2022-06-29 08:17:53 +00:00
|
|
|
# root is a tmpfs so that we have an ephemeral system ("impermanence" handles the state)
|
2022-06-24 04:21:01 +00:00
|
|
|
fileSystems."/" = {
|
2022-06-29 08:17:53 +00:00
|
|
|
device = "none";
|
|
|
|
fsType = "tmpfs";
|
|
|
|
options = [
|
|
|
|
"mode=755"
|
|
|
|
"size=1G"
|
|
|
|
"defaults"
|
|
|
|
];
|
2022-04-27 06:38:39 +00:00
|
|
|
};
|
2022-06-29 08:17:53 +00:00
|
|
|
# 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/aa272cff-0fcc-498e-a4cb-0d95fb60631b";
|
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
|
|
|
|
2022-05-17 01:58:12 +00:00
|
|
|
fileSystems."/boot" = {
|
2022-06-29 08:17:53 +00:00
|
|
|
device = "/dev/disk/by-uuid/31D3-40CB";
|
2022-05-17 01:58:12 +00:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
2022-04-27 06:38:39 +00:00
|
|
|
|
2022-06-29 08:17:53 +00:00
|
|
|
# fileSystems."/var/lib/pleroma" = {
|
|
|
|
# device = "/opt/pleroma";
|
|
|
|
# options = [ "bind" ];
|
|
|
|
# };
|
2022-04-27 06:38:39 +00:00
|
|
|
|
2022-06-29 08:17:53 +00:00
|
|
|
# TODO: does transmission handle symlinks?
|
2022-05-05 22:47:36 +00:00
|
|
|
fileSystems."/var/lib/transmission/Downloads" = {
|
2022-06-29 08:17:53 +00:00
|
|
|
device = "/var/lib/uninsane/media";
|
2022-05-05 22:47:36 +00:00
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
|
|
|
fileSystems."/var/lib/transmission/.incomplete" = {
|
2022-06-29 08:17:53 +00:00
|
|
|
device = "/var/lib/uninsane/media/incomplete";
|
2022-05-05 22:47:36 +00:00
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
|
|
|
|
1980-01-01 00:53:55 +00:00
|
|
|
# in-memory compressed RAM (seems to be dynamically sized)
|
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [
|
2022-06-29 08:17:53 +00:00
|
|
|
{ device = "/nix/persist/swapfile"; size = 4096; }
|
1980-01-01 00:53:55 +00:00
|
|
|
];
|
2022-04-27 06:38:39 +00:00
|
|
|
}
|
|
|
|
|