Compare commits
2 Commits
cacd136ca9
...
1df5c12921
| Author | SHA1 | Date | |
|---|---|---|---|
| 1df5c12921 | |||
| fec9e18710 |
@ -16,6 +16,7 @@
|
|||||||
./groups
|
./groups
|
||||||
./hardware
|
./hardware
|
||||||
./ide
|
./ide
|
||||||
|
./networking
|
||||||
./notif
|
./notif
|
||||||
./office
|
./office
|
||||||
./rice
|
./rice
|
||||||
|
|||||||
@ -14,6 +14,7 @@ in
|
|||||||
base = true;
|
base = true;
|
||||||
power = "desktop";
|
power = "desktop";
|
||||||
stylix.enable = true;
|
stylix.enable = true;
|
||||||
|
openssh.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
6
modules/nix/networking/default.nix
Normal file
6
modules/nix/networking/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./openssh.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
25
modules/nix/networking/openssh.nix
Normal file
25
modules/nix/networking/openssh.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user