From f3a53928410b5e7dc5fd46e36d6b77db70f4d727 Mon Sep 17 00:00:00 2001 From: kurogeek Date: Fri, 22 May 2026 14:48:01 +0700 Subject: [PATCH] mob next [ci-skip] [ci skip] [skip ci] lastFile:routers/default.nix --- flake.nix | 84 ----------------------------------- routers/default.nix | 105 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 104 insertions(+), 85 deletions(-) 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 <