summaryrefslogtreecommitdiff
path: root/hosts/turret/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-10-01 10:41:09 -0400
committerseth <[email protected]>2023-10-01 10:49:46 -0400
commita8630322f77dbb7be4810099a42352b9278996a1 (patch)
treeb8df66a7e5b9d8c31b27a4a9b357ff7e4b9d418f /hosts/turret/default.nix
parent30f55e656d344e017f66ecbae8eb27cf13ba53bb (diff)
treewide!: flatten to parts/ layout
Diffstat (limited to 'hosts/turret/default.nix')
-rw-r--r--hosts/turret/default.nix38
1 files changed, 0 insertions, 38 deletions
diff --git a/hosts/turret/default.nix b/hosts/turret/default.nix
deleted file mode 100644
index faac3d2..0000000
--- a/hosts/turret/default.nix
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- pkgs,
- openwrt-imagebuilder,
- ...
-}: let
- inherit (pkgs) runCommand;
- inherit (pkgs.stdenv) mkDerivation;
- inherit (openwrt-imagebuilder.lib) build profiles;
- wrtProfiles = profiles {
- inherit pkgs;
- release = "22.03.3";
- };
- config = mkDerivation {
- name = "openwrt-config-files";
- src = ./files;
- installPhase = ''
- mkdir -p $out
- cp -r * $out/
- '';
- };
- image =
- wrtProfiles.identifyProfile "netgear_wac104"
- // {
- packages = ["https-dns-proxy"];
-
- files = runCommand "image-files" {} ''
- mkdir -p $out/etc/uci-defaults
- cat > $out/etc/uci-defaults/99-custom <<EOF
- uci -q batch << EOI
- set system.@system[0].hostname='turret'
- commit
- EOI
- EOF
- cp -fr ${config}/etc/* $out/etc/
- '';
- };
-in
- build image