More stuff
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
imports = [
|
||||
./disko.nix
|
||||
./filesystem.nix
|
||||
./mounts.nix
|
||||
./${hostname}-hardware-configuration.nix
|
||||
];
|
||||
}
|
||||
|
||||
47
hardware/mounts.nix
Normal file
47
hardware/mounts.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Ensure NFS support is installed
|
||||
environment.systemPackages = [ pkgs.nfs-utils ];
|
||||
|
||||
fileSystems = {
|
||||
"/home/chris/Stardust" = {
|
||||
device = "192.168.2.158:/mnt/tower/stardust/chris/files";
|
||||
fsType = "nfs4";
|
||||
options = [
|
||||
"defaults"
|
||||
"x-systemd.mount-timeout=5"
|
||||
"user"
|
||||
"exec"
|
||||
"x-systemd.automount" # Mounts on access
|
||||
"noauto" # Doesn't block boot if server is down
|
||||
];
|
||||
};
|
||||
|
||||
"/home/chris/Foundry" = {
|
||||
device = "192.168.2.158:/mnt/tower/foundry/Data";
|
||||
fsType = "nfs4";
|
||||
options = [
|
||||
"defaults"
|
||||
"x-systemd.mount-timeout=5"
|
||||
"user"
|
||||
"exec"
|
||||
"x-systemd.automount"
|
||||
"noauto"
|
||||
];
|
||||
};
|
||||
|
||||
"/home/chris/Games" = {
|
||||
device = "889e9f90-2d41-4f6b-a0af-21a727465a32";
|
||||
fsType = "ext4";
|
||||
options = [
|
||||
"defaults"
|
||||
"x-systemd.mount-timeout=5"
|
||||
"user"
|
||||
"exec"
|
||||
"x-systemd.automount"
|
||||
"noauto"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user