From 1caea6f14f3465a00e675984bc3a2d94f73f5043 Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Sun, 21 Sep 2025 08:48:10 -0500 Subject: hosts/radish: Add superd for managing services --- hosts/radish/services.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 hosts/radish/services.nix (limited to 'hosts/radish/services.nix') diff --git a/hosts/radish/services.nix b/hosts/radish/services.nix new file mode 100644 index 0000000..8dddcfa --- /dev/null +++ b/hosts/radish/services.nix @@ -0,0 +1,25 @@ +{ lib, config, pkgs, ... }: + +{ + environment.systemPackages = [ pkgs.superd ]; + + environment.etc = { + "superd/services/nix-daemon.service".text = '' + [Unit] + Description=Nix Daemon + [Service] + ExecStart=${config.nix.package}/bin/nix-daemon --daemon + KillMode=process + ''; + + "superd/services/sshd.service".text = '' + [Unit] + Description=SSH Daemon + [Service] + Environment="LD_LIBRARY_PATH=${config.system.nssModules.path}" + ExecStart=${config.services.openssh.package} -D -f /etc/ssh/sshd_config + KillMode=process + Restart=always + ''; + }; +} -- cgit v1.2.3