summaryrefslogtreecommitdiff
path: root/modules/core/access
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-28 07:20:06 -0700
committerFuwn <[email protected]>2024-10-28 07:20:06 -0700
commit66aee595a1c230745614644261273615cbb53d5a (patch)
tree5c22fb41ea498468bdafd91b186928992440c1f7 /modules/core/access
parentserver: add harmonia (diff)
downloadnixos-config-66aee595a1c230745614644261273615cbb53d5a.tar.xz
nixos-config-66aee595a1c230745614644261273615cbb53d5a.zip
core: allow mosh as optional
Diffstat (limited to 'modules/core/access')
-rw-r--r--modules/core/access/mosh.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/core/access/mosh.nix b/modules/core/access/mosh.nix
index c9af5bf..7d6d7e9 100644
--- a/modules/core/access/mosh.nix
+++ b/modules/core/access/mosh.nix
@@ -1,6 +1,9 @@
+{ config, lib, ... }:
{
- programs.mosh = {
- enable = true;
- openFirewall = false;
+ config = lib.mkIf config.modules.mosh.enable {
+ programs.mosh = {
+ enable = true;
+ openFirewall = false;
+ };
};
}