From 497384d486f794a1dfdef6d62b99e8bc179ae2ed Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Fri, 29 Mar 2024 20:38:51 +0100 Subject: [PATCH] move sigma-{public,p2p} to sigma --- hosts/omega/default.nix | 1 - hosts/sigma/default.nix | 2 +- hosts/{omega => sigma}/network.nix | 8 ++++---- 3 files changed, 5 insertions(+), 6 deletions(-) rename hosts/{omega => sigma}/network.nix (95%) diff --git a/hosts/omega/default.nix b/hosts/omega/default.nix index 71dcdda..b631571 100644 --- a/hosts/omega/default.nix +++ b/hosts/omega/default.nix @@ -7,7 +7,6 @@ ../../modules/syncthing.nix ./hardware.nix ./borg.nix - ./network.nix ./sway.nix ]; diff --git a/hosts/sigma/default.nix b/hosts/sigma/default.nix index 5d23941..355c9e1 100644 --- a/hosts/sigma/default.nix +++ b/hosts/sigma/default.nix @@ -5,7 +5,7 @@ ../../modules/server ./hardware.nix #./borg.nix - #./network.nix + ./network.nix ]; networking.hostName = "sigma"; diff --git a/hosts/omega/network.nix b/hosts/sigma/network.nix similarity index 95% rename from hosts/omega/network.nix rename to hosts/sigma/network.nix index fac3b38..24e4447 100644 --- a/hosts/omega/network.nix +++ b/hosts/sigma/network.nix @@ -20,7 +20,7 @@ Kind = "wireguard"; }; wireguardConfig = { - PrivateKeyFile = config.age.secrets.wireguard-private-key-file-omega.path; + PrivateKeyFile = config.age.secrets.wireguard-private-key-file-sigma.path; }; wireguardPeers = [ { @@ -68,7 +68,7 @@ Kind = "wireguard"; }; wireguardConfig = { - PrivateKeyFile = config.age.secrets.wireguard-private-key-file-omega.path; + PrivateKeyFile = config.age.secrets.wireguard-private-key-file-sigma.path; }; wireguardPeers = [ { @@ -104,8 +104,8 @@ group = "systemd-network"; }; - age.secrets.wireguard-private-key-file-omega = { - file = "${secrets}/secrets/wireguard-private-key-file-omega.age"; + age.secrets.wireguard-private-key-file-sigma = { + file = "${secrets}/secrets/wireguard-private-key-file-sigma.age"; mode = "640"; owner = "root"; group = "systemd-network";