add ssh server to polaris
This commit is contained in:
1 parent
2172aeb179
commit
b12c211a69
2 files changed
+6
-2
No files matched your search
@@ -18,8 +18,6 @@ in
|
|||||||
flake.modules.nixos.openssh =
|
flake.modules.nixos.openssh =
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.openssh.openFirewall = true;
|
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
nixosModules.workstation-base
|
nixosModules.workstation-base
|
||||||
|
nixosModules.openssh
|
||||||
nixosModules.steam
|
nixosModules.steam
|
||||||
./_hardware.nix
|
./_hardware.nix
|
||||||
]
|
]
|
||||||
@@ -46,5 +47,10 @@ in
|
|||||||
common-cpu-amd
|
common-cpu-amd
|
||||||
common-gpu-amd
|
common-gpu-amd
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
services.openssh.openFirewall = false;
|
||||||
|
networking.firewall.extraInputRules = ''
|
||||||
|
ip saddr 192.168.178.0/24 tcp dport 22 accept
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user