diff --git a/machines/kcnhub/configuration.nix b/machines/kcnhub/configuration.nix index 60bd0e2..901c730 100644 --- a/machines/kcnhub/configuration.nix +++ b/machines/kcnhub/configuration.nix @@ -16,6 +16,8 @@ ./packages.nix # Set of Users on This System ./users.nix + # Disable sleep (so SSH remains accessible) + ./nosleep.nix ]; # Support NTFS(3g) diff --git a/machines/kcnhub/nosleep.nix b/machines/kcnhub/nosleep.nix new file mode 100644 index 0000000..ba907b9 --- /dev/null +++ b/machines/kcnhub/nosleep.nix @@ -0,0 +1,6 @@ +{ ... }: { + systemd.targets.sleep.enable = false; + systemd.targets.suspend.enable = false; + systemd.targets.hibernate.enable = false; + systemd.targets.hybrid-sleep.enable = false; +}