Commit caef5895e650

Vincent Demeester <vincent@sbr.pm>
2022-08-21 11:47:49
systems/modules: fix typos in syncthing and ssh
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 0737e3a
Changed files (4)
systems
systems/hosts/wakasu.nix
@@ -81,6 +81,7 @@ in
         enable = true;
         guiAddress = "${metadata.hosts.wakasu.wireguard.addrs.v4}:8384";
       };
+      ssh.enable = true;
     };
   };
 
systems/modules/profiles/ssh.nix
@@ -28,4 +28,5 @@ in
       listenAddresses = cfg.listenAddresses;
       forwardX11 = cfg.forwardX11;
     };
-  }
+  };
+}
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;
   };
 }
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;