Compare commits

...

2 Commits

Author SHA1 Message Date
1df5c12921 add openssh to server1
All checks were successful
nix flake show / show-flake (push) Successful in 27s
2025-08-09 13:21:22 +02:00
fec9e18710 add openssh 2025-08-09 13:19:45 +02:00
4 changed files with 33 additions and 0 deletions

View File

@ -16,6 +16,7 @@
./groups
./hardware
./ide
./networking
./notif
./office
./rice

View File

@ -14,6 +14,7 @@ in
base = true;
power = "desktop";
stylix.enable = true;
openssh.enable = true;
};
};
}

View File

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./openssh.nix
];
}

View File

@ -0,0 +1,25 @@
{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.openssh.enable = mkOption {
type = types.bool;
default = false;
description = "openssh";
};
config = mkIf config.smayzy.openssh.enable {
services.openssh = {
enable = true;
ports = [ 22 ];
settings = {
PasswordAuthentication = true;
AllowUsers = null;
UseDns = true;
X11Forwarding = false;
PermitRootLogin = "no";
};
};
};
}