gio trash mount option
This commit is contained in:
parent
2470c8ad53
commit
caf9e222f8
@ -108,10 +108,10 @@ in
|
|||||||
"x-systemd.idle-timeout=600"
|
"x-systemd.idle-timeout=600"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
btrfsMount = device: subvol: {
|
btrfsMount = device: subvol: extraOpts: {
|
||||||
inherit device;
|
inherit device;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [
|
options = extraOpts ++ [
|
||||||
"subvol=${subvol}"
|
"subvol=${subvol}"
|
||||||
"ssd"
|
"ssd"
|
||||||
"compress=lzo"
|
"compress=lzo"
|
||||||
@ -119,15 +119,18 @@ in
|
|||||||
"space_cache=v2"
|
"space_cache=v2"
|
||||||
"commit=120"
|
"commit=120"
|
||||||
"datacow"
|
"datacow"
|
||||||
]
|
];
|
||||||
++ (if subvol == "nixos" then [ "noatime" ] else [ ]);
|
|
||||||
};
|
};
|
||||||
|
trashOptions = [
|
||||||
|
"x-gvfs-trash"
|
||||||
|
"x-gvfs-show"
|
||||||
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"/" = btrfsMount (getMapper "nvme") "nixos";
|
"/" = btrfsMount (getMapper "nvme") "nixos" [ "noatime" ];
|
||||||
"/home" = btrfsMount (getMapper "nvme") "home";
|
"/home" = btrfsMount (getMapper "nvme") "home" [ ];
|
||||||
"/srv/games" = btrfsMount (getMapper "nvme") "games";
|
"/srv/games" = btrfsMount (getMapper "nvme") "games" trashOptions;
|
||||||
"/srv/ai" = btrfsMount (getUUID "ca1671e1-e201-4960-ad30-593393f970fb") "ai";
|
"/srv/ai" = btrfsMount (getUUID "ca1671e1-e201-4960-ad30-593393f970fb") "ai" trashOptions;
|
||||||
"/srv/pool" = nfsMount "server" "pool";
|
"/srv/pool" = nfsMount "server" "pool";
|
||||||
"/srv/server_home" = nfsMount "server" "jawz";
|
"/srv/server_home" = nfsMount "server" "jawz";
|
||||||
"/srv/backups" = nfsMount "server" "backups";
|
"/srv/backups" = nfsMount "server" "backups";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user