nixos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 6e6bd2e8e2a8acf697b535e5c83884c674a93a86
parent 6c4d073b7b049c2b44c130ed04dd016e2b442e79
Author: Toni Brown <me@tb148.net>
Date:   Sun, 26 Apr 2026 19:54:35 +0800

enable ipv4 for remote

Diffstat:
Mflake.lock | 26+++++++++++++-------------
Mremote/cloudflared/default.nix | 1-
Mremote/default.nix | 7++-----
Aremote/localization/default.nix | 3+++
Mremote/matrix-continuwuity/default.nix | 1-
Mremote/networking/default.nix | 3+--
Mremote/networking/networkd/default.nix | 12++----------
Mremote/nix/default.nix | 5-----
Aremote/timesyncd/default.nix | 11+++++++++++
9 files changed, 32 insertions(+), 37 deletions(-)

diff --git a/flake.lock b/flake.lock @@ -125,11 +125,11 @@ ] }, "locked": { - "lastModified": 1777004352, - "narHash": "sha256-SV+9PgNwZ8jHVCjK6YaCBzaheLSW7cDnm5DpOYrD8Vw=", + "lastModified": 1777196875, + "narHash": "sha256-6M/rTHxFRdKJ6WZYxrCl68qIyh3BvjWBmYC7Vufolbg=", "owner": "nix-community", "repo": "home-manager", - "rev": "6012cf1fed3eba66115f3fd117b9be6bd2a15b2f", + "rev": "38bf0202cae280174cbb80fc24a63978f16333f7", "type": "github" }, "original": { @@ -156,11 +156,11 @@ "lix": { "flake": false, "locked": { - "lastModified": 1776960573, - "narHash": "sha256-MheSE/ezR8UDgRrgmRlteNEAX/hBCM74oIh++co3AgU=", - "rev": "bb8bc31e58e09ddc9f278fb848dfa30faddfd625", + "lastModified": 1777046179, + "narHash": "sha256-ukqkOXABDV9aNOtM6jm1Xfkak4hVUOsB65j7Jsvnjug=", + "rev": "de212be82bfb51dd7cc96c1485b1b7d713696501", "type": "tarball", - "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/bb8bc31e58e09ddc9f278fb848dfa30faddfd625.tar.gz?rev=bb8bc31e58e09ddc9f278fb848dfa30faddfd625" + "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/de212be82bfb51dd7cc96c1485b1b7d713696501.tar.gz?rev=de212be82bfb51dd7cc96c1485b1b7d713696501" }, "original": { "type": "tarball", @@ -213,11 +213,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1776548001, - "narHash": "sha256-ZSK0NL4a1BwVbbTBoSnWgbJy9HeZFXLYQizjb2DPF24=", + "lastModified": 1776877367, + "narHash": "sha256-EHq1/OX139R1RvBzOJ0aMRT3xnWyqtHBRUBuO1gFzjI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "b12141ef619e0a9c1c84dc8c684040326f27cdcc", + "rev": "0726a0ecb6d4e08f6adced58726b95db924cef57", "type": "github" }, "original": { @@ -235,11 +235,11 @@ ] }, "locked": { - "lastModified": 1777039524, - "narHash": "sha256-B8JItJqoioKiNMtVE5sCZC7EPH6xQ5XB93o19cO8HWs=", + "lastModified": 1777195059, + "narHash": "sha256-wvQwTKhrRM75A07kwfVGI3ziVqJv3UPYW/nUNUeBBpw=", "owner": "nix-community", "repo": "NUR", - "rev": "2bb24bf6cc7c6f9cbe547b02b359090cf79b57fe", + "rev": "c46e1c595167bd8d2067a6e7d6828025f944c18f", "type": "github" }, "original": { diff --git a/remote/cloudflared/default.nix b/remote/cloudflared/default.nix @@ -3,7 +3,6 @@ enable = true; tunnels."9fa561dc-d9b5-4b26-a351-d8248b10e6f9" = { credentialsFile = "/home/admin/.cloudflared/9fa561dc-d9b5-4b26-a351-d8248b10e6f9.json"; - edgeIPVersion = "6"; default = "http_status:404"; }; }; diff --git a/remote/default.nix b/remote/default.nix @@ -4,21 +4,18 @@ ./btrbk/. ./cloudflared/. ./filesystem/. + ./localization/. ./matrix-continuwuity/. ./networking/. ./nix/. ./openssh/. ./security/. + ./timesyncd/. ./user/. ./vaultwarden/. ./hardware-configuration.nix ]; - time.timeZone = "Etc/UTC"; - i18n.defaultLocale = "en_US.UTF-8"; - - programs.git.enable = true; - # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. # diff --git a/remote/localization/default.nix b/remote/localization/default.nix @@ -0,0 +1,3 @@ +{...}: { + i18n.defaultLocale = "en_US.UTF-8"; +} diff --git a/remote/matrix-continuwuity/default.nix b/remote/matrix-continuwuity/default.nix @@ -21,7 +21,6 @@ allow_encryption = true; allow_federation = true; trusted_servers = ["matrix.org" "tchncs.de" "envs.net"]; - ip_lookup_strategy = 2; database_backup_path = "/var/lib/continuwuity/backups"; }; }; diff --git a/remote/networking/default.nix b/remote/networking/default.nix @@ -2,6 +2,5 @@ imports = [./networkd/.]; networking.hostName = "hetznerion"; - networking.useDHCP = false; - services.resolved.enable = true; + networking.useDHCP = true; } diff --git a/remote/networking/networkd/default.nix b/remote/networking/networkd/default.nix @@ -2,16 +2,7 @@ systemd.network.enable = true; systemd.network.networks."30-wan" = { matchConfig.Name = "enp1s0"; - networkConfig = { - DNS = [ - "2a00:1098:2b::1" - "2a00:1098:2c::1" - "2a01:4f8:c2c:123f::1" - "2a01:4f9:c010:3f02::1" - ]; - DHCP = "no"; - IPv6AcceptRA = false; - }; + networkConfig.DHCP = "ipv4"; address = [ "2a01:4f8:1c19:8cba::1/64" ]; @@ -19,4 +10,5 @@ {Gateway = "fe80::1";} ]; }; + networking.useNetworkd = true; } diff --git a/remote/nix/default.nix b/remote/nix/default.nix @@ -1,9 +1,4 @@ {...}: { - nix.gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 7d"; - }; nix.settings = { auto-optimise-store = true; experimental-features = [ diff --git a/remote/timesyncd/default.nix b/remote/timesyncd/default.nix @@ -0,0 +1,11 @@ +{...}: { + time.timeZone = "Etc/UTC"; + services.timesyncd = { + enable = true; + servers = [ + "ntp1.hetzner.de" + "ntp2.hetzner.com" + "ntp3.hetzner.net" + ]; + }; +}