aboutsummaryrefslogtreecommitdiff
path: root/hosts/meowbook
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-05-26 16:31:26 -0400
committerRosa <rosaontheweb@proton.me>2026-05-26 16:31:26 -0400
commit2bf6fd2a43fc02a401b43852b80a70a1032643c3 (patch)
tree25acf8d6dd048958de30c7d08a4c55ca4a043bf2 /hosts/meowbook
parentf99f1f9fb2d8985384e1e6ccb2388daab5a9978f (diff)
break out some network configuration
Diffstat (limited to 'hosts/meowbook')
-rw-r--r--hosts/meowbook/default.nix37
1 files changed, 7 insertions, 30 deletions
diff --git a/hosts/meowbook/default.nix b/hosts/meowbook/default.nix
index 7c93476..095adea 100644
--- a/hosts/meowbook/default.nix
+++ b/hosts/meowbook/default.nix
@@ -25,12 +25,12 @@
};
networking = {
- networkmanager = {
- enable = true;
- wifi.macAddress = "random";
- };
+ networkmanager = {
+ enable = true;
+ wifi.macAddress = "random";
+ };
- useNetworkd = true;
+ useNetworkd = true;
};
programs.sway.enable = true;
@@ -42,31 +42,8 @@
};
systemd.network = {
- netdevs."90-evilvpn" = {
- netdevConfig = {
- Kind = "wireguard";
- Name = "wg0";
- };
-
- wireguardConfig = {
- PrivateKeyFile = "/etc/wireguard/meowbook.key";
- RouteTable = "main";
- };
-
- wireguardPeers = [
- {
- AllowedIPs = [ "10.6.6.0/24" ];
- Endpoint = "51.79.54.109:51820";
- PersistentKeepalive = 25;
- PublicKey = "ChnzJG0HJcgk3OhgTzoPZ9EOyhuCH1EAknaQ9VF7N0I=";
- }
- ];
- };
-
- networks."90-evilvpn" = {
- address = [ "10.6.6.4/24" ];
- matchConfig.Name = "wg0";
- };
+ netdevs."90-evilvpn".enable = true;
+ networks."90-evilvpn".address = [ "10.6.6.4/24" ];
};
users.users.rosa.enable = true;