mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 13:29:22 +02:00
split ssh away from nix
This commit is contained in:
parent
08e8414488
commit
dff0d40777
9 changed files with 26 additions and 13 deletions
|
@ -18,6 +18,7 @@
|
|||
./plasma/6.nix
|
||||
./printing
|
||||
./repo-sync
|
||||
./ssh
|
||||
./steam
|
||||
./users
|
||||
self.inputs.home-manager.nixosModules.home-manager
|
||||
|
|
|
@ -59,14 +59,6 @@ in {
|
|||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
banner = "Hackers are in Your System!!!";
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "prohibit-password";
|
||||
};
|
||||
};
|
||||
systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 1048576000;
|
||||
};
|
||||
}
|
||||
|
|
18
modules/ssh/default.nix
Normal file
18
modules/ssh/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, lib, pkgs, self, ... }:
|
||||
|
||||
let cfg = config.jopejoe1.ssh;
|
||||
in {
|
||||
options.jopejoe1.ssh = { enable = lib.mkEnableOption "Enable ssh"; };
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
banner = "Hackers are in Your System!!!";
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "prohibit-password";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue