{ inputs, lib, ... }: { flake.legacyPackages = { whitehouse-router = import "${inputs.liminix}/default.nix" { device = (import "${inputs.liminix}/devices/gl-ar750"); liminix-config = import ./white-house/configuration.nix { inherit inputs; }; }; whitehouse-router-2 = import "${inputs.liminix}/default.nix" { device = (import "${inputs.liminix}/devices/gl-ar750"); liminix-config = import ./white-house-2/configuration.nix { inherit inputs; }; }; flint-repeater = let pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; profiles = inputs.openwrt-imagebuilder.lib.profiles { inherit pkgs; }; config = profiles.identifyProfile "glinet_gl-mt6000" // { # add package to include in the image, ie. packages that you don't # want to install manually later packages = [ "tcpdump" "relayd" "luci-proto-relay" ]; disabledServices = [ ]; # include files in the images. # to set UCI configuration, create a uci-defauts scripts as per # official OpenWRT ImageBuilder recommendation. files = let router-config = { ssh-keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAB/raxJR8gASmquP63weHelbi+da2WBJR1DgzHPNz/f" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDuhpzDHBPvn8nv8RH1MRomDOaXyP4GziQm7r3MZ1Syk" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAmgyEGuY/r7SDlJgrzYmQqpcWS5W+fCzRi3OS59ne4W openpgp:0xFF687387" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEcZ/p1Ofa9liwIzPWzNtONhJ7+FUWd2lCz33r81t8+w kurogeek@kurogeek" "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIOJDRQfb1+7VK5tOe8W40iryfBWYRO6Uf1r2viDjmsJtAAAABHNzaDo=" "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIDgsWq+G/tcr6eUQYT7+sJeBtRmOMabgFiIgIV44XNc6AAAABHNzaDo=" "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIJMi3TAuwDtIeO4MsORlBZ31HzaV5bji1fFBPcC9/tWuAAAABHNzaDo=" ]; upstream-wifi = { ssid = "Glom"; password = ""; }; wifi = { ssid = "GL-AR750"; password = "qwer1234"; }; }; dropbear-path = "/etc/dropbear"; in pkgs.runCommand "image-files" { } '' mkdir -p $out/${dropbear-path} cat > $out/${dropbear-path}/authorized_keys < $out/etc/uci-defaults/99-custom <