nas fixes
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user