K900
5d02b86888
systemd-in-stage1: include firmware in initrd
...
duh.
2 years ago
Janne Heß
bc53ac7753
nixos/systemd-shutdown: Remove unneeded binaries
2 years ago
Janne Heß
0411b51a00
nixos/systemd-stage-1: Remove unnecessary binaries
...
We can make the growfs and makefs binaries conditional because we know
if we'll need them. Also move the cryptsetup generator to the luksroot
so it's not included when not needed.
We drop some generators altogether: systemd-getty-generator because we
don't have getty anyway in stage 1, systemd-system-update-generator
because we don't use that logic in NixOS and
systemd-veritysetup-generator because stage 1 has no veritysetup support
(yet) and if it had, we still wouldn't want to include the generator
unconditionally.
2 years ago
Janne Heß
fa2c9b41d4
nixos/systemd-stage-1: Add initrd secrets support
2 years ago
Will Fancher
69d8047516
nixos: Fix up systemd shutdown ramfs
2 years ago
Janne Heß
45494fab68
nixos/systemd-stage-1: Get rid of random-seed
...
This is not used at all since the unit has
ConditionPathExists=!/etc/initrd-release
2 years ago
Janne Heß
dc4b2812e4
nixos/stage-1-systemd: Also accept packages as store paths
2 years ago
Jack O'Sullivan
568cb2d6ab
nixos/systemd/nspawn: Add missing nspawn unit options
...
A few options have been added to the `systemd.nspawn` unit type are
missing from `systemd.nspawn.*.*Config`. See systemd.nspawn(5).
2 years ago
Will Fancher
9e8b463cce
nixos: Handle panic_on_fail in systemd stage 1
2 years ago
Janne Heß
30a00c29c4
nixos/systemd: Properly shut down the system
2 years ago
Janne Heß
b9bf28fd70
nixos/stage-1-init: Pass all parameters to the builder
...
This is for compatiblity with the old builder to get compat with uboot
support and to prepend microcode updates to the initrd
2 years ago
Janne Heß
01bc138a8e
nixos/stage-1-init: Merge mdraid module into swraid
2 years ago
Janne Heß
dda7e9e3ee
nixos/stage-1-systemd: Add mdraid support (+ test)
2 years ago
Janne Heß
6d6c1c341c
nixos/stage-1-systemd: Add keymap support
...
Makes my life a lot easier with my non-american keyboard layout
2 years ago
Janne Heß
aeb75b3b69
nixos/stage-1-systemd: Implement hibernation + test
2 years ago
Janne Heß
3df2691e6b
nixos/stage-1-systemd: Handover between the systemds directly
2 years ago
Janne Heß
fb44ecd129
nixos/udev: Add systemd stage 1 support
2 years ago
Janne Heß
adab6ce552
nixos/systemd-stage-1: Minor fixups
...
- Fix the name of the env
- Add the correct kmod to the initrd
- Add `less` to make journalctl usable
- Fix SYSTEMD_SULOGIN_FORCe for rescue.target
- Add some missing binaries
2 years ago
Janne Heß
acf089edef
nixos/systemd-stage-1: Softcode bin tools...
...
...and other cleanups and fixes
2 years ago
Janne Heß
41d3ca0677
nixos/systemd-stage-1: Use an own systemd package
...
We need more features than systemdMinimal but less than systemd so we
need some own packages :/
2 years ago
Janne Heß
75ece4eb82
nixos/stage-1-systemd: Limit files to the bare necessities
2 years ago
Janne Heß
4b9efea255
nixos/stage-1-systemd: Implement job scripts
2 years ago
Janne Heß
56b4653904
nixos/stage-2-init: Re-add creation of /etc
2 years ago
Janne Heß
7ebb4ebe40
nixos/systemd-stage-1: Append (Initrd) to /etc/initrd-release
...
This is more in line with what dracut does (it appends "Initramfs") and
makes it clear where the boot is currently at when it hangs.
2 years ago
Janne Heß
5653209ed9
nixos/systemd-initrd: Redo object specifications
...
As requested by @roberth , we now have an option similar to
environment.etc. There's also extra store paths to copy and a way to
suppress store paths to make customizations possible.
We also link mount and umount to /bin to make recovery easier when
something fails
2 years ago
Janne Heß
c465c8d719
nixos/systemd-initrd: Make emergency access more flexible
2 years ago
Janne Heß
b7c62b8238
nixos/systemd-initrd: Remove unit options that don't work
2 years ago
Janne Heß
452102db8f
nixos/stage-2-init: Clean up legacy commands
...
We can perform most of the mkdir/ln/rm using systemd-tmpfiles
instead which cleans up the script.
/bin and /home are created by their activation script snippets
usbfs is deprecated and unused.
hwclock seems to be automatically executed by systemd on startup.
The mkswap to prevent hibernation cycles seems to be executed by systemd
as well since the provided regression tests succeeds.
2 years ago
Florian Klink
e3083decc4
systemd-initrd, systemd-lib: drop initrdServiceToUnit
...
We can just use serviceToUnit here.
2 years ago
Florian Klink
74bae06748
systemd-initrd: use pkgs.fakeNss, document why we need libnss_files.so
2 years ago
Will Fancher
5bfe213315
Clarify suppressed units description
2 years ago
Will Fancher
213de9b108
systemd-initrd: autoFormat and autoResize in initrd
2 years ago
Will Fancher
1abf154179
systemd-initrd: Add PATH to everything
2 years ago
Will Fancher
2d4ebf1259
initrd: Optional systemd-based initrd
2 years ago
Will Fancher
25113740a5
nixos: systemd-lib: Make generateUnits general with default args
2 years ago
Will Fancher
52c98fc3e9
nixos: systemd: Split unit types into separate module
2 years ago
Bob van der Linden
397b8257a0
nixos: systemd-user: fix additionalUpstreamUserUnits description
...
Co-authored-by: Martin Weinelt <mweinelt@users.noreply.github.com>
2 years ago
Bob van der Linden
92af44e04d
nixos: systemd: remove unhelpful comments in additionalUpstreamSystemUnits
...
Co-authored-by: Janne Heß <janne@hess.ooo>
2 years ago
Bob van der Linden
6514bb4620
nixos: systemd-user: make additionalUpstreamUserUnits internal
2 years ago
Bob van der Linden
66759cea7d
nixos: systemd-user: expand on additionalUpstreamUserUnits description
2 years ago
Bob van der Linden
753b911708
nixos: systemd-tmpfiles: use cfg shorthand
2 years ago
Bob van der Linden
38d043de9c
nixos: systemd: split off systemd-tmpfiles into separate module
2 years ago
Bob van der Linden
0e665d1815
nixos: systemd-user: allow additional upstream user units
...
Currently it is only possible to add upstream _system_ units. The option
systemd.additionalUpstreamSystemUnits can be used for this.
However, this was not yet possible for systemd.user. In a similar
fashion this was added to systemd-user.nix.
This is intended to have other modules add upstream units.
2 years ago
Bob van der Linden
b6d50528dd
nixos: systemd-user: use cfg shorthand
2 years ago
Bob van der Linden
022b4209a3
nixos: systemd: split off systemd-user into separate module
2 years ago
Bob van der Linden
cae8ef1232
nixos: systemd-coredump: use cfg shorthand
2 years ago
Bob van der Linden
ccfcb78a50
nixos: systemd: split off coredump into separate module
2 years ago
Bob van der Linden
7adc8ecac3
nixos: systemd-journald: use cfg shorthand
2 years ago
Bob van der Linden
fee1e24b3b
nixos: systemd: split off journald into separate module
2 years ago
Bob van der Linden
e2cb8903da
nixos: systemd-logind: use cfg shorthand
2 years ago