Files
lavitz/modules/services.nix
2025-06-10 14:20:28 -06:00

31 lines
578 B
Nix

{ config, pkgs, ... }:
{
# Enable the OpenSSH daemon
services.openssh.enable = true;
# Sleep configuration optimized for NVIDIA
systemd.sleep.extraConfig = ''
AllowSuspend=yes
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
services.sunshine = {
enable = true;
autoStart = true;
capSysAdmin = true;
openFirewall = true;
package = pkgs.sunshine.override {
cudaSupport = true;
};
};
# Tailscale
services.tailscale.enable = true;
# Docker
virtualisation.docker.enable = true;
}