docker host config
This commit is contained in:
parent
f706a15313
commit
567d126144
1 changed files with 14 additions and 1 deletions
|
@ -21,23 +21,36 @@
|
|||
device = "/dev/disk/by-uuid/fcee0188-8ca1-4fda-81b7-f5920c79ab48";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/mnt/hdd1" = {
|
||||
device = "/dev/disk/by-uuid/5d9dd538-79e4-4168-be91-e0b040155cb3";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/mnt/hdd2" = {
|
||||
device = "/dev/disk/by-uuid/5a43b7dc-3e28-459e-824a-ad45b5475361";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
# MergerFS
|
||||
# Install some packages.
|
||||
environment.systemPackages = with pkgs; [
|
||||
mergerfs
|
||||
ansible
|
||||
(python3.withPackages (ps: [ps.ansible ps.pip ps.requests]))
|
||||
];
|
||||
|
||||
# MergerFS.
|
||||
fileSystems."/media" = {
|
||||
fsType = "fuse.mergerfs";
|
||||
depends = ["/mnt/hdd0" "/mnt/hdd1" "/mnt/hdd2"];
|
||||
device = "/mnt/hdd*";
|
||||
options = ["cache.files=partial" "dropcacheonclose=true" "category.create=mfs" "func.getattr=newest"];
|
||||
};
|
||||
|
||||
# Media group.
|
||||
users.groups.media = {
|
||||
gid = 1800;
|
||||
};
|
||||
|
||||
users.users.fern.extraGroups = ["media"];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue