This commit is contained in:
parent
ad516fd7e0
commit
ce1fa163fd
9 changed files with 16 additions and 28 deletions
|
@ -9,7 +9,6 @@
|
|||
./media
|
||||
./nix-index.nix
|
||||
./nixpad
|
||||
./openssh.nix
|
||||
./pipewire.nix
|
||||
./podman.nix
|
||||
./st.nix
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.core.openssh;
|
||||
in
|
||||
{
|
||||
options.features.core.openssh.enable = mkEnableOption "Enable openssh";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
||||
openFirewall = lib.mkForce true;
|
||||
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = lib.mkForce "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue