aboutsummaryrefslogtreecommitdiff
path: root/hosts/meowbook
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-05-26 14:54:57 -0400
committerRosa <rosaontheweb@proton.me>2026-05-26 14:54:57 -0400
commitf99f1f9fb2d8985384e1e6ccb2388daab5a9978f (patch)
treeb163caa048beff5953f283d41f6e1a709c583a33 /hosts/meowbook
parent5497fa685466c73cbcffd3e77056752a8d818e3e (diff)
remove syncthing
Diffstat (limited to 'hosts/meowbook')
-rw-r--r--hosts/meowbook/default.nix38
1 files changed, 35 insertions, 3 deletions
diff --git a/hosts/meowbook/default.nix b/hosts/meowbook/default.nix
index bff8e4f..7c93476 100644
--- a/hosts/meowbook/default.nix
+++ b/hosts/meowbook/default.nix
@@ -24,9 +24,13 @@
programs.vesktop.enable = true;
};
- networking.networkmanager = {
- enable = true;
- wifi.macAddress = "random";
+ networking = {
+ networkmanager = {
+ enable = true;
+ wifi.macAddress = "random";
+ };
+
+ useNetworkd = true;
};
programs.sway.enable = true;
@@ -37,5 +41,33 @@
stateVersion = "26.05";
};
+ 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";
+ };
+ };
+
users.users.rosa.enable = true;
}