diff options
| author | Fuwn <[email protected]> | 2024-09-23 04:18:52 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-23 04:18:52 -0700 |
| commit | 05bf499beaab80fcfa69c2af0eaf16c952e8b8cc (patch) | |
| tree | e43553eea1980dd34c25c839f10121ca6531d1a0 /modules/core | |
| parent | lock: tsutsumi (diff) | |
| download | nixos-config-05bf499beaab80fcfa69c2af0eaf16c952e8b8cc.tar.xz nixos-config-05bf499beaab80fcfa69c2af0eaf16c952e8b8cc.zip | |
modules: move shared modules to core
Diffstat (limited to 'modules/core')
| -rw-r--r-- | modules/core/default.nix | 2 | ||||
| -rw-r--r-- | modules/core/networking/default.nix | 22 | ||||
| -rw-r--r-- | modules/core/networking/tailscale.nix (renamed from modules/core/tailscale.nix) | 0 |
3 files changed, 23 insertions, 1 deletions
diff --git a/modules/core/default.nix b/modules/core/default.nix index b086a28..a798030 100644 --- a/modules/core/default.nix +++ b/modules/core/default.nix @@ -1,8 +1,8 @@ { imports = [ + ./networking ./nix ./sops.nix - ./tailscale.nix ]; programs.mosh = { diff --git a/modules/core/networking/default.nix b/modules/core/networking/default.nix new file mode 100644 index 0000000..5e53759 --- /dev/null +++ b/modules/core/networking/default.nix @@ -0,0 +1,22 @@ +{ secrets, ... }: +{ + imports = [ ./tailscale.nix ]; + + networking = { + nftables.enable = true; + + nameservers = [ + "45.90.28.0#${secrets.nextdns_id}.dns.nextdns.io" + "2a07:a8c0::#${secrets.nextdns_id}.dns.nextdns.io" + "45.90.30.0#${secrets.nextdns_id}.dns.nextdns.io" + "2a07:a8c1::#${secrets.nextdns_id}.dns.nextdns.io" + ]; + + timeServers = [ + "0.nixos.pool.ntp.org" + "1.nixos.pool.ntp.org" + "2.nixos.pool.ntp.org" + "3.nixos.pool.ntp.org" + ]; + }; +} diff --git a/modules/core/tailscale.nix b/modules/core/networking/tailscale.nix index 0228915..0228915 100644 --- a/modules/core/tailscale.nix +++ b/modules/core/networking/tailscale.nix |