openssh.startWhenNeeded, move setting

This commit is contained in:
Sean Buckley 2021-11-12 11:09:04 -05:00
parent a52232a5d6
commit 4fd7f9f40f
2 changed files with 9 additions and 8 deletions

View file

@ -38,15 +38,17 @@
''; '';
}; };
services.xserver = {
libinput.mouse.middleEmulation = false;
deviceSection = ''
Option "VariableRefresh" "true"
'';
};
services = { services = {
openssh.startWhenNeeded = true;
earlyoom.enable = true; earlyoom.enable = true;
xserver = {
libinput.mouse.middleEmulation = false;
deviceSection = ''
Option "VariableRefresh" "true"
'';
};
avahi = { avahi = {
enable = true; enable = true;
nssmdns = true; nssmdns = true;

View file

@ -4,7 +4,6 @@ with lib;
config = mkIf (config.sconfig.profile == "server") { config = mkIf (config.sconfig.profile == "server") {
services.logind.lidSwitch = "ignore"; services.logind.lidSwitch = "ignore";
services.openssh.enable = true; services.openssh.enable = true;
services.openssh.startWhenNeeded = true;
documentation.nixos.enable = false; documentation.nixos.enable = false;
nix.gc = { nix.gc = {
automatic = true; automatic = true;