harden
This commit is contained in:
@@ -52,6 +52,8 @@
|
|||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
|
users.users.${user}.extraGroups = ["docker"];
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{
|
{
|
||||||
device = "/swapfile";
|
device = "/swapfile";
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
nameservers = ["1.1.1.1"];
|
nameservers = ["1.1.1.1"];
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
trustedInterfaces = ["eno1" "tailscale0"];
|
trustedInterfaces = ["tailscale0"];
|
||||||
allowedUDPPorts = [config.services.tailscale.port];
|
allowedUDPPorts = [config.services.tailscale.port];
|
||||||
allowedTCPPorts = [22];
|
allowedTCPPorts = [22];
|
||||||
checkReversePath = "loose";
|
checkReversePath = "loose";
|
||||||
|
|||||||
@@ -65,7 +65,6 @@
|
|||||||
"sudo"
|
"sudo"
|
||||||
"network"
|
"network"
|
||||||
"systemd-journal"
|
"systemd-journal"
|
||||||
"docker"
|
|
||||||
];
|
];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
openssh.authorizedKeys.keys = constants.sshKeys;
|
openssh.authorizedKeys.keys = constants.sshKeys;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
PermitRootLogin = "prohibit-password";
|
PermitRootLogin = "no";
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user