Generalize nfs path

This commit is contained in:
Bun 2025-03-08 02:44:09 -05:00
parent 58e165ad1d
commit b3310802cb
12 changed files with 15 additions and 34 deletions

View file

@ -15,7 +15,7 @@
# Network mounts
"/home/${config.sysusers.main}/KittyNFS" = {
device = "10.100.0.1:/export/KittyNFS";
device = "10.100.0.1:/storage";
fsType = "nfs4";
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
};

View file

@ -1,21 +1,16 @@
{ lib, ... }:
{
imports = [
./filesystems
./hardware
./users
../../modules/system
];
networking = {
hostName = "extern";
wg-quick.interfaces.wgc.address = [ "10.100.0.21/24" ];
};
networking.hostName = "iso";
system = {
desktop.enable = true;
wireless.enable = true;
wireguard.client.enable = true;
video.nvidia.enable = true;
libvirtd.enable = true;
stateVersion = "24.11";

View file

@ -1,11 +0,0 @@
{ config, ... }:
{
fileSystems = {
# Network mounts
"/home/${config.sysusers.main}/KittyNFS" = {
device = "10.100.0.1:/export/KittyNFS";
fsType = "nfs4";
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
};
};
}

View file

@ -6,5 +6,4 @@
neededForBoot = true;
options = [ "subvol=persist" "compress=zstd" "noatime" ];
};
environment.persistence."/persist".directories = [ "/export/KittyNFS" ];
}

View file

@ -3,7 +3,7 @@
fileSystems = {
# Network mounts
"/home/${config.sysusers.main}/KittyNFS" = {
device = "${config.ips.server}:/export/KittyNFS";
device = "${config.ips.server}:/storage";
fsType = "nfs4";
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
};

View file

@ -1,11 +1,8 @@
{ ... }:
{
fileSystems = {
# Misc bulk storage
"/export/Bulk" = {
device = "/dev/disk/by-uuid/ef465845-cc56-4db5-9260-8ae515eb025e";
fsType = "btrfs";
noCheck = true;
};
fileSystems."/persist/storage" = {
device = "/dev/disk/by-uuid/ef465845-cc56-4db5-9260-8ae515eb025e";
fsType = "btrfs";
noCheck = true;
};
}

View file

@ -6,7 +6,7 @@
options = [ "nosuid" "nodev" ];
};
"/home/${config.sysusers.main}/KittyNFS" = {
device = "10.100.0.1:/export/KittyNFS";
device = "10.100.0.1:/storage";
fsType = "nfs4";
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
};

View file

@ -40,7 +40,7 @@
# Network mounts
"/home/${config.sysusers.main}/KittyNFS" = {
device = "${config.ips.server}:/export/KittyNFS";
device = "${config.ips.server}:/storage";
fsType = "nfs4";
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
};