Commit Graph

1002 Commits (gateway-profile)

Author SHA1 Message Date
Daniel Barlow 67080627a1 fix wireless network names 2024-03-20 18:27:10 +00:00
Daniel Barlow 269c9cd916 firewall -> profile 2024-03-20 18:18:34 +00:00
Daniel Barlow 95ebddb661 move default routes to gateway profile 2024-03-20 18:13:33 +00:00
Daniel Barlow a66510c9e6 deep thoughts 2024-03-20 18:13:09 +00:00
Daniel Barlow 75aa01513c move dnsmasq -> gateway profile 2024-03-18 21:44:54 +00:00
Daniel Barlow d3fd6f5c0a move dhcp6 client to profile 2024-03-18 21:26:13 +00:00
Daniel Barlow 90302f0944 delete commented code 2024-03-18 21:18:48 +00:00
Daniel Barlow 00bf3446f1 add pppoe to gateway profile 2024-03-18 20:58:34 +00:00
Daniel Barlow 0d8abbc314 extneder: delete kernel firewall config
we don't need nftables for a bridge
2024-03-18 20:13:22 +00:00
Daniel Barlow 4c3883a5e7 remove sshd from wap profile
It's not actually part of providing a wireless access point.
2024-03-18 20:08:24 +00:00
Daniel Barlow 2ecaa3bef8 delete commented code 2024-03-18 20:02:24 +00:00
Daniel Barlow 5dd595a209 configure hostapds in gateway profile 2024-03-18 19:52:37 +00:00
Daniel Barlow 0b61c0b318 create gateway profile by extracting from rotuer example 2024-03-18 00:05:43 +00:00
Daniel Barlow 78efd6dfcf expose modulesPath to ease out-of-tree configuration.nix 2024-03-17 19:03:44 +00:00
Daniel Barlow 77421a5d3b ifwait block if s6-rc lock is held
otherwise it doesn't trigger the service if something else is
slow to start
2024-03-16 23:09:41 +00:00
Daniel Barlow 74f4577521 support timeouts (default 30s) for starting s6-rc services 2024-03-16 23:08:59 +00:00
Daniel Barlow 3ec5245fa4 implement ifwait trigger service and use in bridge
should we convert all ifwait uses to this trigger too? seems
reasonable
2024-03-16 20:41:13 +00:00
Daniel Barlow c223e5cea2 allow buildInputs param to s6 service
this is in preparation for trigger services that need to
close over the triggered service without adding it to
s6-rc dependencies
2024-03-16 20:25:29 +00:00
Daniel Barlow 921be2f3c8 add config.system.callService
this is like pkgs.callService except that it passes
config.system.service as a param so that the service
being defined can invoke other services

if this proves to be a good idea, all uses of
pkgs.callService should be changed to use it instead
2024-03-16 20:23:18 +00:00
Daniel Barlow da64f64ee9 deep thoughts 2024-03-16 20:22:30 +00:00
Daniel Barlow c46e228c60 failing test for ifwait 2024-03-12 23:41:46 +00:00
Daniel Barlow 0386452ddc deep thoughts 2024-03-12 23:40:49 +00:00
Daniel Barlow 4c549ac625 fix ifwait deps 2024-03-11 22:16:49 +00:00
Daniel Barlow 4d0061e90a deep thoughts 2024-03-08 22:37:26 +00:00
Daniel Barlow af966056c7 temporary fix for cmake cross-compilation 2024-03-08 22:36:42 +00:00
Daniel Barlow e5963ae3f7 deep thoughts 2024-03-06 23:19:47 +00:00
Daniel Barlow f164f19d95 service starts and stops 2024-03-06 23:19:47 +00:00
Daniel Barlow dd4ab41f6a rename run-event 2024-03-06 23:19:47 +00:00
Daniel Barlow 5d5dff6729 WIP add failing test that service starts 2024-03-06 23:19:47 +00:00
Daniel Barlow 570d29c368 pass command line params to run instead of reffing global 2024-03-06 23:19:47 +00:00
Daniel Barlow 725af00dc9 improve test for dummy0 up
if we run off the end of the events fixture, it didn't work
2024-03-06 23:19:47 +00:00
Daniel Barlow e1b932ec27 remove hardcoded filename in test event generator 2024-03-06 23:19:47 +00:00
Daniel Barlow 7173b6fb1c don't call os.exit 2024-03-06 23:19:47 +00:00
Daniel Barlow ed9548f21d pass event producer fn as param 2024-03-06 23:19:47 +00:00
Daniel Barlow 0787807a7f ifwait: don't run on load if in test harness 2024-03-06 23:19:47 +00:00
Daniel Barlow 38ed91f641 simplify assertion 2024-03-06 23:19:47 +00:00
Daniel Barlow ffe9603c39 remove file-scoped parameters var 2024-03-06 23:19:47 +00:00
Daniel Barlow cbd3dfefc5 ifwait fixture/test harness 2024-03-06 23:19:47 +00:00
Daniel Barlow 018c1868b5 ifwait: use anoia.assoc 2024-03-06 23:19:47 +00:00
Daniel Barlow 5184ff63f7 add anoia.nl, a convenience wrapper on netlink 2024-03-06 23:19:47 +00:00
Daniel Barlow 35909c9a23 add netlink to fennelrepl 2024-03-06 23:19:47 +00:00
Daniel Barlow 4383462199 deep thoughts 2024-03-06 23:19:47 +00:00
Daniel Barlow 9730cdd63b add assoc to anoia 2024-03-06 23:19:47 +00:00
dan 095853214b Merge pull request 'Fix kernel build on belkin' (#10) from sinavir/liminix:fix_kernel_build_on_belkin into main
Reviewed-on: #10
2024-03-06 18:21:13 +00:00
Daniel Barlow 9d6e50cbbc extract extneder example to a "profile"
this is a bit of an experiment to reduce the copy-paste in
examples by turning them into "application" modules.

planning to follow up with another module for "wifi router"
2024-02-27 23:13:12 +00:00
Daniel Barlow 94dbc56595 fix doc 2024-02-27 20:08:30 +00:00
Daniel Barlow 2cd7f932eb alignment may be null 2024-02-27 19:47:46 +00:00
sinavir 27c7735f02 belkin-RT3200: fix kernel options 2024-02-22 21:57:40 +01:00
sinavir 29c9de248d fix import of openwrt sources 2024-02-22 21:57:33 +01:00
Daniel Barlow 3ca0d87c27 ci.nix: alphabetise systems 2024-02-21 19:49:14 +00:00