working stokes setup

This commit is contained in:
Jonas Juselius
2022-08-19 14:59:44 +02:00
parent 2dbbaa1ddd
commit 2f1c75a2f0
5 changed files with 53 additions and 58 deletions

View File

@@ -1,4 +1,7 @@
{ pkgs, nodes, ...}:
{ pkgs, ...}:
let
nodes = import ./nodes.nix;
in
{
# deployment.tags = [ "frontend" ];
node.myvnc = true;
@@ -85,7 +88,12 @@
};
};
# services.udev.extraRules = ''
# KERNEL=="ibp59s0", SUBSYSTEM=="net", ATTR{create_child}:="0x2222"
# '';
networking = {
hostName = "stokes";
useDHCP = false;
interfaces.eno1 = {
useDHCP = false;
@@ -101,7 +109,7 @@
prefixLength = 24;
} ];
};
interfaces."ibp59s0.2222" = {
interfaces.ibp59s0 = {
useDHCP = false;
ipv4.addresses = [ {
address = "10.1.63.100";
@@ -124,16 +132,6 @@
device = "/home";
options = [ "bind" ];
};
"/opt" = {
device = "10.1.63.80:/opt";
fsType = "nfs";
options = [ "soft" "rdma" "defaults" ];
};
"/data" = {
device = "10.1.63.80:/data";
fsType = "nfs";
options = [ "soft" "rdma" "defaults" ];
};
"/vol/local-storage/vol1" = {
device = "/vol/vol1";
options = [ "bind" ];