dotfiles/modules/config/devices/config/saturn.nix

32 lines
581 B
Nix
Executable file

{ devicesFunctions }:
let
inherit (devicesFunctions)
readWritePermissions
;
drivePath = "/run/media";
byLabel = "/dev/disk/by-label";
in
{
label = "Saturn";
name = "saturn";
ip = {
address0 = "192.168.58.104";
};
boot = {
options = [
"fmask=0022"
"dmask=0022"
];
};
storage0 = {
mount = "${drivePath}/games";
device = "${byLabel}/Games";
options = readWritePermissions;
};
storage1 = {
mount = "${drivePath}/entertainment";
device = "${byLabel}/Entertainment";
options = readWritePermissions;
};
}