diff --git a/flake.nix b/flake.nix index 0e66dc5..33e45ae 100644 --- a/flake.nix +++ b/flake.nix @@ -85,90 +85,6 @@ packages.file-uploader = pkgs.gtcm-file-uploader; }; - flake.packages.x86_64-linux.myrouter = - 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 = { - upstream-wifi = { - ssid = "Glom"; - password = ""; - }; - wifi = { - ssid = "GL-AR750"; - password = "qwer1234"; - }; - }; - in - pkgs.runCommand "image-files" { } '' - - mkdir -p $out/etc/uci-defaults - cat > $out/etc/uci-defaults/99-custom < $out/${dropbear-path}/authorized_keys < $out/etc/uci-defaults/99-custom <