liminix

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

commit 4d273a9469ff948aa749d8b72ad63d468d965317
parent 40db175b415280f242c1848e0cee1bf20d29d6e8
Author: Daniel Barlow <dan@telent.net>
Date:   Sun, 29 Dec 2024 13:27:27 +0000

dropbear would like /etc/shells to exist

Diffstat:
Mmodules/ssh/default.nix | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/ssh/default.nix b/modules/ssh/default.nix @@ -7,6 +7,7 @@ let inherit (lib) mkOption types; inherit (pkgs) liminix; + inherit (pkgs.pseudofile) dir file; mkBoolOption = description : mkOption { type = types.bool; inherit description; @@ -20,6 +21,13 @@ in { }; }; config.programs.busybox.options.FEATURE_FANCY_ECHO = "y"; + config.filesystem = dir { + etc = dir { + shells = { + file = "/bin/sh\n"; + }; + }; + }; config.system.service = { ssh = config.system.callService ./ssh.nix { address = mkOption {