forked from DGNum/liminix
use ssh service in examples
This commit is contained in:
parent
d7336679c4
commit
ef666c34cd
2 changed files with 3 additions and 7 deletions
|
@ -28,6 +28,7 @@ in rec {
|
||||||
../modules/wlan.nix
|
../modules/wlan.nix
|
||||||
../modules/network
|
../modules/network
|
||||||
../modules/vlan
|
../modules/vlan
|
||||||
|
../modules/ssh
|
||||||
];
|
];
|
||||||
|
|
||||||
hostname = "arhcive";
|
hostname = "arhcive";
|
||||||
|
|
|
@ -29,6 +29,7 @@ in rec {
|
||||||
../modules/network
|
../modules/network
|
||||||
../modules/hostapd
|
../modules/hostapd
|
||||||
../modules/bridge
|
../modules/bridge
|
||||||
|
../modules/ssh
|
||||||
../modules/standard.nix
|
../modules/standard.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -100,13 +101,7 @@ in rec {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.sshd = longrun {
|
services.sshd = svc.ssh.build {};
|
||||||
name = "sshd";
|
|
||||||
run = ''
|
|
||||||
mkdir -p /run/dropbear
|
|
||||||
${dropbear}/bin/dropbear -E -P /run/dropbear.pid -R -F
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.resolvconf = oneshot rec {
|
services.resolvconf = oneshot rec {
|
||||||
dependencies = [ services.dhcpc ];
|
dependencies = [ services.dhcpc ];
|
||||||
|
|
Loading…
Reference in a new issue