summaryrefslogtreecommitdiff
path: root/hosts/_turret/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-07 23:17:33 -0400
committerseth <[email protected]>2023-05-07 23:17:33 -0400
commit6e49c227c18d4f3008318aaa0a38a36c4de7f6c9 (patch)
tree0b8fa202bda8cf72b2d282f51691d05b069119d7 /hosts/_turret/default.nix
parent07f726290d5f5d3898efdd95f629b14bcd311360 (diff)
hosts: remove prefix from turret
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