31 lines
578 B
Nix
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;
|
|
}
|