fasu changes
This commit is contained in:
@@ -27,6 +27,13 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
virtualisation.libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
qemuOvmf = true;
|
||||||
|
qemuSwtpm = true;
|
||||||
|
#qemuOvmfPackage = pkgs.OVMFFull;
|
||||||
|
};
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
# Use the GRUB 2 boot loader.
|
||||||
boot.loader.grub = {
|
boot.loader.grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -79,6 +86,7 @@
|
|||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
ntfs3g
|
ntfs3g
|
||||||
|
virtiofsd
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
@@ -88,22 +96,25 @@
|
|||||||
trusted-users = [ "me" ];
|
trusted-users = [ "me" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
networking.useDHCP = false;
|
||||||
|
networking.bridges = {
|
||||||
|
"br0" = {
|
||||||
|
interfaces = [ "enp0s25" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networking.interfaces.br0.ipv4.addresses = [ {
|
||||||
|
address = "192.168.1.3";
|
||||||
|
prefixLength = 24;
|
||||||
|
} ];
|
||||||
networking = {
|
networking = {
|
||||||
#usePredictableInterfaceNames = false;
|
#usePredictableInterfaceNames = false;
|
||||||
defaultGateway = {
|
defaultGateway = {
|
||||||
address = "192.168.1.1";
|
address = "192.168.1.1";
|
||||||
interface = "eth0";
|
interface = "br0";
|
||||||
};
|
};
|
||||||
hostName = "fusu";
|
hostName = "fusu";
|
||||||
nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
||||||
interfaces = {
|
|
||||||
"enp0s25" = {
|
|
||||||
name = "eth0";
|
|
||||||
ipv4.addresses = [
|
|
||||||
{ address = "192.168.1.3"; prefixLength = 24;}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
slint-lsp
|
||||||
cifs-utils
|
cifs-utils
|
||||||
nfs-utils
|
nfs-utils
|
||||||
ntfs3g
|
ntfs3g
|
||||||
|
|||||||
@@ -197,6 +197,7 @@
|
|||||||
ip=$(curl my.ip.fi)
|
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 "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=${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/
|
# https://www.namecheap.com/support/knowledgebase/article.aspx/29/11/how-to-dynamically-update-the-hosts-ip-with-an-https-request/
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user