fix: misc cleanups

This commit is contained in:
Jonas Juselius
2025-10-11 11:09:09 +02:00
parent 6611267c3b
commit 29e65c1598
2 changed files with 5 additions and 25 deletions

View File

@@ -25,6 +25,10 @@ in {
# services.udev.extraRules = ''
# KERNEL=="ibp65s0", SUBSYSTEM=="net", ATTR{create_child}:="0x7666"
# '';
security.sudo.extraConfig = ''
%sif ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/singularity
%admin ALL=(admin) NOPASSWD: ALL
'';
environment.systemPackages = with pkgs; [
rdma-core
@@ -101,10 +105,6 @@ in {
useNetworkd = true;
useDHCP = false;
hostName = name;
defaultGateway = {
interface = "enp1s0np0";
address = "172.16.239.1";
};
firewall = {
allowedTCPPorts = [];
allowedUDPPorts = [];

View File

@@ -91,16 +91,6 @@ in
# "172.19.254.0/24"
# "172.19.255.0/24"
# ];
infiniband-exporter = {
enable = false;
nameMap = ''
# 0xe8ebd3030024981e "c0-1"
'';
};
slurm-exporter = {
enable = false;
port = 6080;
};
};
};
@@ -151,16 +141,6 @@ in
};
};
systemd.automounts = [
# {
# wantedBy = [ "multi-user.target" ];
# automountConfig = {
# TimeoutIdleSec = "600";
# };
# where = "/home";
# }
];
nix.extraOptions = ''
# secret-key-files = /etc/nix/rossby.key
'';
@@ -273,7 +253,7 @@ in
services.tailscale = {
enable = true;
authKeyFile = "/var/lib/secrets/tailscale.key";
useRoutingFeatures = "server"; # for exit-node usage
useRoutingFeatures = "client";
extraUpFlags = [
"--login-server=https://headscale.svc.oceanbox.io"
"--accept-dns=true"