diff --git a/hosts/fusu.nix b/hosts/fusu.nix index 21db9a6..03eea51 100644 --- a/hosts/fusu.nix +++ b/hosts/fusu.nix @@ -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;} - ]; - }; - }; }; } diff --git a/hosts/main.nix b/hosts/main.nix index 891b785..e2da36b 100644 --- a/hosts/main.nix +++ b/hosts/main.nix @@ -45,6 +45,7 @@ environment.systemPackages = with pkgs; [ + slint-lsp cifs-utils nfs-utils ntfs3g diff --git a/hosts/rpi.nix b/hosts/rpi.nix index c8d9897..19252b7 100644 --- a/hosts/rpi.nix +++ b/hosts/rpi.nix @@ -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/ '';