liminix/tests/min-copy-closure/configuration.nix

37 lines
820 B
Nix
Raw Normal View History

2023-05-07 23:02:10 +02:00
{ config, pkgs, lib, ... } :
let
inherit (pkgs) dropbear;
inherit (pkgs.pseudofile) dir symlink;
inherit (pkgs.liminix.services) oneshot longrun bundle target;
inherit
(pkgs.liminix.networking)
address
udhcpc
interface
route
;
in {
imports = [
../../vanilla-configuration.nix
2023-12-10 18:12:57 +01:00
../../modules/outputs/jffs2.nix
2023-05-07 23:02:10 +02:00
];
config = {
services.sshd = longrun {
name = "sshd";
run = ''
mkdir -p /run/dropbear
${dropbear}/bin/dropbear -E -P /run/dropbear.pid -R -F
'';
};
users.root = {
passwd = lib.mkForce "$6$GYDbeLSyoIdgDdZW$EXlz4oI7Jz1igSYd4cxwcWR4lqEc5AWdGWuPuBarQeUskFQsBCpPc0GgIPPDl1k7SgrnC82JzSWxvx5o0bvmx/";
openssh.authorizedKeys.keys = [
(builtins.readFile ./id.pub)
];
};
rootfsType = "jffs2";
};
}