aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/hosts.nix2
-rw-r--r--nixos/modules/packages.nix2
-rw-r--r--nixos/modules/wireguad.nix21
3 files changed, 11 insertions, 14 deletions
diff --git a/nixos/modules/hosts.nix b/nixos/modules/hosts.nix
index f53fd8c..4b358b8 100644
--- a/nixos/modules/hosts.nix
+++ b/nixos/modules/hosts.nix
@@ -64,7 +64,7 @@ in {
"ridcully" = "10.8.3.60";
"3dprint" = "10.8.3.80";
"mpd" = "10.8.3.51";
- "printer" = "192.168.0.20";
+ "printer" = "192.168.1.20";
# Portable
"albert" = "10.8.3.61";
"binky" = "10.8.3.63";
diff --git a/nixos/modules/packages.nix b/nixos/modules/packages.nix
index d42cade..3dd4fbc 100644
--- a/nixos/modules/packages.nix
+++ b/nixos/modules/packages.nix
@@ -43,7 +43,6 @@ in {
mc
screen
tmux
- pv
# ls tools
tree
@@ -73,6 +72,7 @@ in {
++ optionals (system == "x86_64-linux") [
nmap
ltrace
+ pv
]
++ optionals (!isNative) [
ncdu_1
diff --git a/nixos/modules/wireguad.nix b/nixos/modules/wireguad.nix
index 1b1db90..dd9e978 100644
--- a/nixos/modules/wireguad.nix
+++ b/nixos/modules/wireguad.nix
@@ -44,18 +44,15 @@ in {
PublicKey = config.secrets.wireguardPubs.spt-omnia;
}
// (optionalAttrs (!is_endpoint) {PersistentKeepalive = 25;}))
- #{
- # wireguardPeerConfig =
- # {
- # Endpoint = "adm.cynerd.cz:51820";
- # AllowedIPs = [
- # "${config.cynerd.hosts.wg.adm-omnia}/32"
- # "10.8.3.0/24"
- # ];
- # PublicKey = config.secrets.wireguardPubs.adm-omnia;
- # }
- # // (optionalAttrs (!is_endpoint) {PersistentKeepalive = 25;});
- #}
+ ({
+ Endpoint = "adm.cynerd.cz:51820";
+ AllowedIPs = [
+ "${config.cynerd.hosts.wg.adm-omnia}/32"
+ "10.8.3.0/24"
+ ];
+ PublicKey = config.secrets.wireguardPubs.adm-omnia;
+ }
+ // (optionalAttrs (!is_endpoint) {PersistentKeepalive = 25;}))
]
++ (optionals is_endpoint (mapAttrsToList (n: v: {
AllowedIPs = "${config.cynerd.hosts.wg."${n}"}/32";