commit caef5895e650585fe2417faacb889a6dd7dd26e6
parent 0737e3afb1ca023b553a3a042373bac41b3d3ec2
Author: Vincent Demeester <vincent@sbr.pm>
Date: Sun, 21 Aug 2022 11:47:49 +0200
systems/modules: fix typos in syncthing and ssh
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
4 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/systems/hosts/wakasu.nix b/systems/hosts/wakasu.nix
@@ -81,6 +81,7 @@ in
enable = true;
guiAddress = "${metadata.hosts.wakasu.wireguard.addrs.v4}:8384";
};
+ ssh.enable = true;
};
};
diff --git a/systems/modules/profiles/ssh.nix b/systems/modules/profiles/ssh.nix
@@ -28,4 +28,5 @@ in
listenAddresses = cfg.listenAddresses;
forwardX11 = cfg.forwardX11;
};
- }
+ };
+}
diff --git a/systems/modules/profiles/syncthing.nix b/systems/modules/profiles/syncthing.nix
@@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
with lib;
+let
+ cfg = config.profiles.syncthing;
+in
{
options = {
profiles.syncthing = {
@@ -9,6 +12,6 @@ with lib;
};
config = mkIf cfg.enable {
warnings = [ "The option 'profiles.syncthing' is deprecated, use 'modules.desktop.syncthing' instead" ];
- modules.desktop.syncthing = cfg.enable;
+ modules.services.syncthing.enable = cfg.enable;
};
}
diff --git a/systems/modules/services/ssh.nix b/systems/modules/services/ssh.nix
@@ -37,7 +37,7 @@ in
# Move this for kerkouane only
extraConfig = ''
StreamLocalBindUnlink yes
- ${cg.extraConfig}
+ ${cfg.extraConfig}
'';
};
sshguard.enable = true;