From 3a1c3469d218603184d1b996224358a7063ca1ed Mon Sep 17 00:00:00 2001 From: iFargle Date: Mon, 4 Dec 2023 15:58:15 +0900 Subject: [PATCH] Remove sleep targets from server --- nixos/hosts/framework-server/gnome-rdp.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/hosts/framework-server/gnome-rdp.nix b/nixos/hosts/framework-server/gnome-rdp.nix index f780fd63..0269829a 100644 --- a/nixos/hosts/framework-server/gnome-rdp.nix +++ b/nixos/hosts/framework-server/gnome-rdp.nix @@ -1,4 +1,8 @@ { ... }: { services.gnome.gnome-remote-desktop.enable = true; networking.firewall.allowedTCPPorts = [ 3389 ]; + systemd.targets.sleep.enable = false; + systemd.targets.suspend.enable = false; + systemd.targets.hibernate.enable = false; + systemd.targets.hybrid-sleep.enable = false; } \ No newline at end of file