nas fixes

This commit is contained in:
mjallen18
2024-02-18 19:24:34 -06:00
parent 9c088f2f43
commit 4b15be1b8d
4 changed files with 34 additions and 9 deletions

View File

@@ -148,14 +148,31 @@ in
flatpak.enable = false;
};
# Networking configs
systemd.services.nas-mounts = {
path = [ pkgs.zfs ];
script = ''
zpool import -R /mnt -f "Main Pool"
zpool import -R /mnt -f "Safe SSD"
zpool import -R /mnt -f "Junk"
zfs load-key -L file:///root/main-pool.key "Main Pool"
zfs load-key -L file:///root/safe-ssd.key "Safe SSD"
zfs mount -a
'';
wantedBy = [ "multi-user.target" ];
};
# Networking configs enp7s0
networking = {
hostName = hostname;
interfaces.enp7s0.ipv4.routes = [{
address = "10.0.1.18";
prefixLength = 16;
}];
hostId = "4b501480";
# Enable Network Manager
networkmanager.enable = true;
networkmanager.enable = false;
};
# Time config
@@ -213,6 +230,7 @@ in
};
virtualisation.docker.enable = true;
virtualisation.docker.enableNvidia = true;
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.