mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 20:59:32 -08:00
Added ssh server options
This commit is contained in:
parent
d5559cf38b
commit
a72360db4d
1 changed files with 8 additions and 7 deletions
|
@ -5,17 +5,18 @@
|
||||||
{
|
{
|
||||||
imports = [ (import ./hardware-configuration.nix) ];
|
imports = [ (import ./hardware-configuration.nix) ];
|
||||||
|
|
||||||
|
services = {
|
||||||
|
sshd.enable = true;
|
||||||
|
openssh.permitRootLogin = "no";
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.sshd.wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
efi = {
|
efi = {
|
||||||
canTouchEfiVariables = true;
|
canTouchEfiVariables = true;
|
||||||
efiSysMountPoint = "/boot";
|
efiSysMountPoint = "/boot";
|
||||||
};
|
};
|
||||||
grub = {
|
|
||||||
devices = [ "nodev" ];
|
|
||||||
efiSupport = true;
|
|
||||||
enable = true;
|
|
||||||
version = 2;
|
|
||||||
useOSProber = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue