nixos-config/config/host-config/nostromo.nix

54 lines
1.2 KiB
Nix

{ config, lib, pkgs, ... }:
with lib;
let hostname = "nostromo";
in {
networking = {
interfaces = {
eno1.useDHCP = false;
eno2.useDHCP = false;
eno3.useDHCP = false;
eno4.useDHCP = false;
enp33s0f0.useDHCP = false;
enp33s0f1.useDHCP = false;
enp9s0f0.useDHCP = false;
enp9s0f1.useDHCP = false;
intif0 = { useDHCP = true; };
};
};
# fudo = {
# secrets."backplane-client-${hostname}-passwd" = {
# source-file = toPath "/srv/secrets/backplane-client/${hostname}.passwd";
# target-file = "/srv/backplane/dns/client.passwd";
# target-host = "${hostname}";
# user = config.fudo.client.dns.user;
# };
# client.dns = {
# enable = true;
# ipv4 = false;
# ipv6 = true;
# user = "fudo-client";
# external-interface = "extif0";
# password-file = secrets."backplane-client-${hostname}-passwd".target-file;
# };
# };
fudo.ipfs = {
enable = true;
users = [ "niten" ];
api-address = "/ip4/0.0.0.0/tcp/5001";
};
virtualisation = {
libvirtd = {
enable = true;
qemuPackage = pkgs.qemu_kvm;
onShutdown = "shutdown";
};
};
}