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
+4 -41
View File
@@ -1,47 +1,10 @@
{ pkgs, ... }:
{ pkgs, hostname, ... }:
{
# 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 = "/dev/disk/by-label/Games";
fsType = "ext4";
options = [
"defaults"
"x-systemd.mount-timeout=5"
"user"
"exec"
"x-systemd.automount"
"noauto"
];
};
};
imports = [
./${hostname}-mounts.nix
];
}
+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"
];
};
};
}
+7 -9
View File
@@ -4,15 +4,13 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+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
];
}