fix lint
This commit is contained in:
parent
100aafce37
commit
71c5166390
4 changed files with 136 additions and 121 deletions
|
@ -7,54 +7,56 @@
|
|||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
services = {
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
# Enable the OpenSSH daemon.
|
||||
openssh.enable = true; # Did you read the comment?
|
||||
|
||||
nfs.server = {
|
||||
enable = true;
|
||||
exports = ''
|
||||
/mnt/storage *(rw,async,no_subtree_check,fsid=0,all_squash,anonuid=0,anongid=0)
|
||||
'';
|
||||
};
|
||||
|
||||
snapraid = {
|
||||
enable = true;
|
||||
parityFiles =
|
||||
[ "/mnt/parity1/snapraid.parity" "/mnt/parity2/snapraid.parity-2" ];
|
||||
dataDisks = {
|
||||
d1 = "/mnt/disk1";
|
||||
d2 = "/mnt/disk2";
|
||||
d3 = "/mnt/disk3";
|
||||
d4 = "/mnt/disk4";
|
||||
d5 = "/mnt/disk5";
|
||||
d6 = "/mnt/disk6";
|
||||
};
|
||||
contentFiles = [
|
||||
"/var/lib/snapraid/snapraid.content"
|
||||
"/mnt/disk1/snapraid.content"
|
||||
"/mnt/disk2/snapraid.content"
|
||||
"/mnt/disk3/snapraid.content"
|
||||
"/mnt/disk5/snapraid.content"
|
||||
];
|
||||
exclude = [
|
||||
"/lost+found/"
|
||||
"*.tmp"
|
||||
"/tmp/"
|
||||
"*.unrecoverable"
|
||||
"/.Trash-1000/"
|
||||
"/rancher/"
|
||||
"/torrents/"
|
||||
"/exclusion-zone/"
|
||||
"/roms/"
|
||||
"/roms/"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Disable firewall, as NFS makes it annoying
|
||||
networking.firewall.enable = false;
|
||||
|
||||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
|
||||
services.nfs.server = {
|
||||
enable = true;
|
||||
exports = ''
|
||||
/mnt/storage *(rw,async,no_subtree_check,fsid=0,all_squash,anonuid=0,anongid=0)
|
||||
'';
|
||||
};
|
||||
|
||||
services.snapraid = {
|
||||
enable = true;
|
||||
parityFiles =
|
||||
[ "/mnt/parity1/snapraid.parity" "/mnt/parity2/snapraid.parity-2" ];
|
||||
dataDisks = {
|
||||
d1 = "/mnt/disk1";
|
||||
d2 = "/mnt/disk2";
|
||||
d3 = "/mnt/disk3";
|
||||
d4 = "/mnt/disk4";
|
||||
d5 = "/mnt/disk5";
|
||||
d6 = "/mnt/disk6";
|
||||
};
|
||||
contentFiles = [
|
||||
"/var/lib/snapraid/snapraid.content"
|
||||
"/mnt/disk1/snapraid.content"
|
||||
"/mnt/disk2/snapraid.content"
|
||||
"/mnt/disk3/snapraid.content"
|
||||
"/mnt/disk5/snapraid.content"
|
||||
];
|
||||
exclude = [
|
||||
"/lost+found/"
|
||||
"*.tmp"
|
||||
"/tmp/"
|
||||
"*.unrecoverable"
|
||||
"/.Trash-1000/"
|
||||
"/rancher/"
|
||||
"/torrents/"
|
||||
"/exclusion-zone/"
|
||||
"/roms/"
|
||||
"/roms/"
|
||||
];
|
||||
};
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue