update nfs addresses

This commit is contained in:
gwg313 2025-03-30 22:47:43 -04:00
parent 2bf9449a19
commit 132dbe997c
Signed by: gwg313
GPG key ID: 60FF63B4826B7400

View file

@ -1,8 +1,10 @@
{ {
config, config,
lib, lib,
inputs,
... ...
}: { }:
{
options = { options = {
nfs.enable = lib.mkEnableOption "Enables NFS and sets up mounts"; nfs.enable = lib.mkEnableOption "Enables NFS and sets up mounts";
}; };
@ -10,7 +12,7 @@
config = lib.mkIf config.nfs.enable { config = lib.mkIf config.nfs.enable {
fileSystems = { fileSystems = {
"/media" = { "/media" = {
device = "192.168.10.2:/mnt/tank/media"; device = inputs.secrets.nfs.devices.media;
fsType = "nfs"; fsType = "nfs";
options = [ options = [
"x-systemd.automount" "x-systemd.automount"
@ -21,7 +23,7 @@
}; };
"/books" = { "/books" = {
device = "192.168.10.2:/mnt/tank/books"; device = inputs.secrets.nfs.devices.books;
fsType = "nfs"; fsType = "nfs";
options = [ options = [
"x-systemd.automount" "x-systemd.automount"
@ -32,7 +34,7 @@
}; };
"/music" = { "/music" = {
device = "192.168.10.2:/mnt/tank/music"; device = inputs.secrets.nfs.devices.music;
fsType = "nfs"; fsType = "nfs";
options = [ options = [
"x-systemd.automount" "x-systemd.automount"
@ -43,7 +45,7 @@
}; };
"/projects" = { "/projects" = {
device = "192.168.10.2:/mnt/tank/projects"; device = inputs.secrets.nfs.devices.projects;
fsType = "nfs"; fsType = "nfs";
options = [ options = [
"x-systemd.automount" "x-systemd.automount"
@ -54,7 +56,7 @@
}; };
"/backups" = { "/backups" = {
device = "192.168.10.2:/mnt/tank/backups"; device = inputs.secrets.nfs.devices.backups;
fsType = "nfs"; fsType = "nfs";
options = [ options = [
"x-systemd.automount" "x-systemd.automount"