liminix

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

configuration.nix (678B)


      1 {
      2   config,
      3   pkgs,
      4   lib,
      5   ...
      6 }:
      7 let
      8   inherit (pkgs) dropbear;
      9   inherit (pkgs.liminix.services) longrun;
     10 in
     11 {
     12   imports = [
     13     ../../vanilla-configuration.nix
     14     ../../modules/outputs/jffs2.nix
     15   ];
     16   config = {
     17     services.sshd = longrun {
     18       name = "sshd";
     19       run = ''
     20         mkdir -p /run/dropbear
     21         ${dropbear}/bin/dropbear -E -P /run/dropbear.pid -R -F
     22       '';
     23     };
     24 
     25     users.root = {
     26       passwd = lib.mkForce "$6$GYDbeLSyoIdgDdZW$EXlz4oI7Jz1igSYd4cxwcWR4lqEc5AWdGWuPuBarQeUskFQsBCpPc0GgIPPDl1k7SgrnC82JzSWxvx5o0bvmx/";
     27       openssh.authorizedKeys.keys = [
     28         (builtins.readFile ./id.pub)
     29       ];
     30     };
     31 
     32     rootfsType = "jffs2";
     33   };
     34 }