liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ef666c34cd9444d1e38a089553c2e52177ccbac5
parent d7336679c4c5dbe97d067be12208527610ceb609
Author: Daniel Barlow <dan@telent.net>
Date:   Fri,  1 Sep 2023 17:32:53 +0100

use ssh service in examples

Diffstat:
Mexamples/arhcive.nix | 1+
Mexamples/extneder.nix | 9++-------
2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/examples/arhcive.nix b/examples/arhcive.nix @@ -28,6 +28,7 @@ in rec { ../modules/wlan.nix ../modules/network ../modules/vlan + ../modules/ssh ]; hostname = "arhcive"; diff --git a/examples/extneder.nix b/examples/extneder.nix @@ -29,6 +29,7 @@ in rec { ../modules/network ../modules/hostapd ../modules/bridge + ../modules/ssh ../modules/standard.nix ]; @@ -100,13 +101,7 @@ in rec { ]; }; - services.sshd = longrun { - name = "sshd"; - run = '' - mkdir -p /run/dropbear - ${dropbear}/bin/dropbear -E -P /run/dropbear.pid -R -F - ''; - }; + services.sshd = svc.ssh.build {}; services.resolvconf = oneshot rec { dependencies = [ services.dhcpc ];