2
0
Commit Graph

79 Commits

Author SHA1 Message Date
dan 9f3c8f7cbd treewide: nixfmt and deadnix 2025-11-11 21:49:45 +00:00
dan 53ec331e29 attempt disabling ipv6 autoconfiguration at boot
This dosn't work as well as you might think if you didn't know that
the config semantics are weird. By setting 'default' we disable
autoconfig on interfaces that do not yet exist, but setting 'all' here
has no effect.
2025-11-11 21:44:38 +00:00
dan d538e8f6cf add options for setting sysctl parameters at boot time 2025-11-11 21:44:37 +00:00
dan e49f8055f3 add etc/hosts to base module
this is hardcoded to localhost only.  it would be better to have
a config option to allow defining static hosts
2025-11-11 21:44:37 +00:00
dan 7e2b0068e6 nixfmt-rfc-style
There is nothing in this commit except for the changes made by
nix-shell -p nixfmt-rfc-style --run "nixfmt ."

If this has mucked up your open branches then sorry about that. You
can probably nixfmt them to match before merging
2025-02-10 21:55:08 +00:00
dan 3df1ec76ff cleanup whitespace and commas
* [] is now [ ]
* {} is now { }
* commas in arglists go at end of line not beginning

In short, I ran the whole thing through nixfmt-rfc-style but only
accepted about 30% of its changes. I might grow accustomed to more
of it over time
2024-06-30 17:16:28 +01:00
dan e94bf62ec1 remove dead code (run deadnix) 2024-06-29 22:59:27 +01:00
dan 5121a8563d callService: dependencies are services not names 2024-06-12 12:58:57 +01:00
dan 7e4a05bbf8 separate kernel and base modules
this is needed for levitate
2024-04-28 12:44:27 +01:00
dan fad0a47b75 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-28 20:59:39 +00:00
Raito Bezarius d6ffdd7be6 devices/zyxel-nwa50ax: expose primary and secondary images
To support A/B a bit better.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-02-19 02:57:34 +01:00
Raito Bezarius 3dc58de0eb modules/outputs: expose commandLineDtbNode option
We allow `bootargs` and `bootargs-override` for now only.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-02-18 20:30:41 +01:00
dan dce983ec79 move kernel module to its own subdir 2024-02-11 18:15:55 +00:00
dan 228c0a1668 pass rootOptions config as rootflags= kernel cmdline opt 2024-01-08 18:54:49 +00:00
dan 3c941b4ce2 partial btrfs support
doesn't actually know how to make the filesystem, just
kernel config and accept it as a valid option
2024-01-07 16:43:43 +00:00
dan 64898eada8 mount tmpfs on /tmp
too much stuff doesn't work without it and it's not
all worth patching
2024-01-04 23:22:02 +00:00
dan 185117843b convert tftp.loadAddress from string to int 2023-11-12 18:37:33 +00:00
dan a9d847e2c0 add ext4 as rootfsType 2023-11-06 21:52:31 +00:00
dan 629914f65e initial support for ubifs 2023-10-16 19:55:17 +01:00
dan bd20f3e419 uimage: make fit optional 2023-10-09 19:47:57 +01:00
dan f75995e895 introduce modules/arch/{mipsel,mipseb}.nix
for settings that are common to all mipse[lb] but would not be shared
with e.g. aarch64 or x86
2023-09-20 17:30:05 +01:00
dan 7faf620c0b move loopback config from base to netowrk module 2023-08-31 18:28:35 +01:00
dan f93c03c98a improve descriptions for base and busybox 2023-08-16 22:26:31 +01:00
dan b81604870b extract kernel config options from base module
we then "import" them straight back into base.nix - it's not
as though you can opt out of having a kernel. But this means
they'll appear separately in the documentation
2023-08-11 18:15:17 +01:00
dan 2a29a00dfe much text, such doc, very wow 2023-08-09 22:27:37 +01:00
dan 4689cebf8d fix illegal module options 2023-08-04 20:07:06 +01:00
dan d7f3e05063 turn nftables firewall into a service-providing module 2023-07-16 17:51:50 +01:00
dan 682183a88d move typeChecked into pkgs.liminix.lib 2023-07-14 20:22:29 +01:00
dan bc27f121d9 /etc/ashrc for interactive non-login shells 2023-05-21 17:08:32 +01:00
dan 26c6eac937 delete config boot.tftp.enable as it doesn't enable anything 2023-04-26 22:18:23 +01:00
dan 4cfaed7303 specify root device as /dev/mtdblockn
the (openwrt?) magic that autodetects it based on mtd labels
won't work with a two-stage boot
2023-04-26 22:16:15 +01:00
dan 633a4f8003 move BLK_DEV_INITRD to base.nix 2023-04-10 22:57:50 +01:00
dan 42725f56f9 make jffs2 module provide o.rootfs, conditionally
it's enabled if config.rootfsType == "jffs2"
2023-04-10 20:01:58 +01:00
dan a5cfa37ed3 unify kernel command line handling
We now use MIPS_CMDLINE_DTB_EXTEND for all boot varieties
(tftpboot, flash boot, kexec) with the addition of
MIPS_BOOTLOADER_CMDLINE_REQUIRE_COOKIE - local patch -
so that the bootloader args are ignored unless they
contain the string "liminix"
2023-03-23 22:24:44 +00:00
dan 4b19568f1b add kexecboot
This allows booting a new image from a running OS, creating a
phram mtd for the root squashfs

* enable CONFIG_KEXEC
* add modules/kexecboot
* patch kexec-tools to add --map-file option for the squashfs
* patch kernel kexec code to call new kernel with DTB
2023-03-19 20:25:43 +00:00
dan 3c6ec354ce move root's home directory to /home/root
/ is a bad choice of home directory

/home/root instead of /root is to make it easier to write
ssh keys to the right place
2023-03-18 14:46:50 +00:00
dan e78d5212e6 move tftp config to base module
we need it for flashing from u-boot even when tftp booting
is not enabled
2023-03-18 14:45:51 +00:00
dan 225fc6fe51 configurable busybox
allows modules to add to the busybox applets and change config
2023-03-10 18:40:45 +00:00
dan 43f1fb230b remove unrecoginsed earlyprintk param from kernel commandline 2023-03-10 00:50:28 +00:00
dan fec77a44b5 DRY loopback interface, it's the same everywhere 2023-03-07 22:36:48 +00:00
dan a3cdc32142 define structured options for config.users 2023-03-04 00:24:48 +00:00
dan bbd699d7b1 add module for device-specific config
in principle this module declares the config that's defined in
devices/foo/default.nix
2023-03-03 20:04:39 +00:00
dan 0cd1bd99e1 declare device.flash options in base.nix
because they're specified in devices/*/default.nix
2023-03-02 23:28:39 +00:00
dan 6d191b73ae add outputs.flashable - flashable firmware.bin 2023-03-02 23:01:26 +00:00
dan adc198b3af WIP push to see what passes 2023-03-01 22:24:58 +00:00
dan 41ff5a1fe6 move FW_LOADER* config to modules/base 2023-03-01 18:16:01 +00:00
dan 59ce03630a consistent ownership/permissions for /run/service-state/** 2023-02-25 22:53:06 +00:00
dan 690cedf00d better type for config.groups
instead of an attrset of anything, specify the expected
structure of each value
2023-02-25 20:33:18 +00:00
dan 751920c8fc qemu: switch to building wireless as kernel modules
This is a hefty change

* add support for kernel backports project
* build wireless stack/drivers as modules from a backported kernel
* create a service to load/unload the modules
2023-02-22 18:41:41 +00:00
dan e89fcfbf09 collect "device" options into an attrset 2023-02-22 18:31:46 +00:00