Update files

This commit is contained in:
2026-06-28 15:47:18 +01:00
parent ab45d41e8e
commit c10737da06
5 changed files with 71 additions and 50 deletions
+3 -40
View File
@@ -1,47 +1,10 @@
{ pkgs, ... }: { pkgs, hostname, ... }:
{ {
# Ensure NFS support is installed # Ensure NFS support is installed
environment.systemPackages = [ pkgs.nfs-utils ]; environment.systemPackages = [ pkgs.nfs-utils ];
fileSystems = { imports = [
"/home/chris/Stardust" = { ./${hostname}-mounts.nix
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 = "/dev/disk/by-label/Games";
fsType = "ext4";
options = [
"defaults"
"x-systemd.mount-timeout=5"
"user"
"exec"
"x-systemd.automount"
"noauto"
];
};
};
} }
+31
View File
@@ -0,0 +1,31 @@
{ pkgs, ... }:
{
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"
];
};
};
}
+1 -3
View File
@@ -4,9 +4,7 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
+22
View File
@@ -0,0 +1,22 @@
{ pkgs, ... }:
{
imports = [
./nas-mounts.nix
];
fileSystems = {
"/home/chris/Games" = {
device = "/dev/disk/by-label/Games";
fsType = "ext4";
options = [
"defaults"
"x-systemd.mount-timeout=5"
"user"
"exec"
"x-systemd.automount"
"noauto"
];
};
};
}
+7
View File
@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
imports = [
./nas-mounts.nix
];
}