enable mosh
This commit is contained in:
parent
ff62814436
commit
1d9517a37f
18
modules/nixos/services/mosh/default.nix
Normal file
18
modules/nixos/services/mosh/default.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{ config, lib, namespace, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
|
||||||
|
cfg = config.${namespace}.services.mosh;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.${namespace}.services.mosh = {
|
||||||
|
enable = lib.mkEnableOption "mosh support";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.mosh = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -32,8 +32,9 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
openssh = enabled;
|
|
||||||
avahi = enabled;
|
avahi = enabled;
|
||||||
|
mosh = enabled;
|
||||||
|
openssh = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user