fasu changes

This commit is contained in:
Sebastian Moser
2024-08-02 21:05:04 +02:00
parent 23848620aa
commit 5531640a1e
3 changed files with 22 additions and 9 deletions

View File

@@ -27,6 +27,13 @@
}
];
virtualisation.libvirtd = {
enable = true;
qemuOvmf = true;
qemuSwtpm = true;
#qemuOvmfPackage = pkgs.OVMFFull;
};
# Use the GRUB 2 boot loader.
boot.loader.grub = {
enable = true;
@@ -79,6 +86,7 @@
environment.systemPackages = with pkgs; [
ntfs3g
virtiofsd
];
nix.settings = {
@@ -88,22 +96,25 @@
trusted-users = [ "me" ];
};
networking.useDHCP = false;
networking.bridges = {
"br0" = {
interfaces = [ "enp0s25" ];
};
};
networking.interfaces.br0.ipv4.addresses = [ {
address = "192.168.1.3";
prefixLength = 24;
} ];
networking = {
#usePredictableInterfaceNames = false;
defaultGateway = {
address = "192.168.1.1";
interface = "eth0";
interface = "br0";
};
hostName = "fusu";
nameservers = [ "1.1.1.1" "8.8.8.8" ];
interfaces = {
"enp0s25" = {
name = "eth0";
ipv4.addresses = [
{ address = "192.168.1.3"; prefixLength = 24;}
];
};
};
};
}

View File

@@ -45,6 +45,7 @@
environment.systemPackages = with pkgs; [
slint-lsp
cifs-utils
nfs-utils
ntfs3g

View File

@@ -197,6 +197,7 @@
ip=$(curl my.ip.fi)
curl "http://dynv6.com/api/update?hostname=${builtins.readFile "${secretsDir}/dns-name-two"}&ipv4=$ip&token=${builtins.readFile "${secretsDir}/dns-name-two-token"}"
curl "https://dynamicdns.park-your-domain.com/update?host=home&domain=${builtins.readFile "${secretsDir}/dns-name"}&password=${builtins.readFile "${secretsDir}/dns-name-token"}&ip=$ip"
curl "https://dynamicdns.park-your-domain.com/update?host=home&domain=mc.c2vi.dev&password=${builtins.readFile "${secretsDir}/dns-name-token"}&ip=$ip"
# https://www.namecheap.com/support/knowledgebase/article.aspx/29/11/how-to-dynamically-update-the-hosts-ip-with-an-https-request/
'';