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-16 15:01:09 +04:00
|
|
|
"/shared/nixos" = lib.mkIf config.deviceSpecific.isVM {
|
2019-08-27 23:41:02 +04:00
|
|
|
fsType = "vboxsf";
|
|
|
|
device = "shared";
|
2019-09-16 15:01:09 +04:00
|
|
|
options = [
|
|
|
|
"rw"
|
|
|
|
"nodev"
|
|
|
|
"relatime"
|
|
|
|
"nofail"
|
|
|
|
"dmode=0755"
|
|
|
|
"fmode=0644"
|
|
|
|
"uid=${toString config.users.users.alukard.uid}"
|
|
|
|
# "gid=${toString config.users.groups.users.gid}"
|
|
|
|
"gid=${toString config.users.groups.smbgrp.gid}"
|
|
|
|
];
|
2019-08-27 23:41:02 +04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# mount swap
|
|
|
|
swapDevices = [
|
|
|
|
{ label = "swap"; }
|
|
|
|
];
|
|
|
|
}
|