summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/radish/default.nix1
-rw-r--r--hosts/radish/services.nix25
2 files changed, 26 insertions, 0 deletions
diff --git a/hosts/radish/default.nix b/hosts/radish/default.nix
index 58a6b7f..452f9e4 100644
--- a/hosts/radish/default.nix
+++ b/hosts/radish/default.nix
@@ -3,6 +3,7 @@
{
imports = [
./packages.nix
+ ./services.nix
./tarball.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
+ '';
+ };
+}