added ssh
This commit is contained in:
parent
68ec429e96
commit
2bd950bd83
@ -27,6 +27,7 @@
|
|||||||
sunshine.enable = false;
|
sunshine.enable = false;
|
||||||
garbage-collection.enable = true;
|
garbage-collection.enable = true;
|
||||||
incus.enable = false;
|
incus.enable = false;
|
||||||
|
ssh.enable = true;
|
||||||
};
|
};
|
||||||
hardware = {
|
hardware = {
|
||||||
fprint.enable = false;
|
fprint.enable = false;
|
||||||
|
@ -21,5 +21,7 @@
|
|||||||
./theming/stylix.nix
|
./theming/stylix.nix
|
||||||
|
|
||||||
./desktop-environments/hyprland/default.nix
|
./desktop-environments/hyprland/default.nix
|
||||||
|
|
||||||
|
./containers/nginx.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
./services/docker.nix
|
./services/docker.nix
|
||||||
./services/podman.nix
|
./services/podman.nix
|
||||||
./services/quickemu.nix
|
./services/quickemu.nix
|
||||||
|
./services/ssh.nix
|
||||||
./services/sunshine.nix
|
./services/sunshine.nix
|
||||||
./services/garbage-collection.nix
|
./services/garbage-collection.nix
|
||||||
./services/incus.nix
|
./services/incus.nix
|
||||||
|
26
modules/system/services/ssh.nix
Normal file
26
modules/system/services/ssh.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.settings.services.ssh;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
settings.services.ssh.enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
description = ''
|
||||||
|
Enable ssh service
|
||||||
|
'';
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
ports = [ 22 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user