2019-08-27 23:41:02 +04:00
|
|
|
{ pkgs, lib, config, ... }: {
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2019-08-27 23:54:21 +04:00
|
|
|
options = if config.deviceSpecific.isSSD then
|
2019-09-14 22:12:56 +04:00
|
|
|
[ "ssd" "noatime" "compress=zstd" ]
|
2019-08-27 23:54:21 +04:00
|
|
|
else
|
2019-09-14 22:12:56 +04:00
|
|
|
[ "noatime" "compress=zstd" ];
|
2019-08-27 23:41:02 +04:00
|
|
|
};
|
2019-09-14 22:12:56 +04:00
|
|
|
"/shared" = lib.mkIf config.deviceSpecific.isVM {
|
2019-08-27 23:41:02 +04:00
|
|
|
fsType = "vboxsf";
|
|
|
|
device = "shared";
|
|
|
|
options = [ "rw" "nodev" "relatime" "iocharset=utf8" "uid=1000" "gid=100" "dmode=0770" "fmode=0770" "nofail" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# mount swap
|
|
|
|
swapDevices = [
|
|
|
|
{ label = "swap"; }
|
|
|
|
];
|
|
|
|
}
|