aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-08 16:26:05 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-08 16:39:29 +0200
commitfd70fbd06a8c8e0e5b292506e2bb09fa7f798e40 (patch)
tree5a6e42784c0d1ec7a66bd3cc3fccb9353b146206 /modules
parentmodules/boot: Make sure to use the same paths everywhere (diff)
downloadnixos-config-fd70fbd06a8c8e0e5b292506e2bb09fa7f798e40.zip
modules/boot: Re-work the boot options
Diffstat (limited to '')
-rw-r--r--modules/by-name/bo/boot/module.nix75
1 files changed, 48 insertions, 27 deletions
diff --git a/modules/by-name/bo/boot/module.nix b/modules/by-name/bo/boot/module.nix
index 673faf70..9634edbc 100644
--- a/modules/by-name/bo/boot/module.nix
+++ b/modules/by-name/bo/boot/module.nix
@@ -29,34 +29,55 @@
iso = pkgs.tails-iso;
- iso_options = [
- "initrd=${tails.initrd}"
- "boot=live"
- "config"
- "live-media=removable"
- "nopersistence"
- "noprompt"
- "timezone=Etc/UTC"
- "splash"
- "noautologin"
- "module=Tails"
- "slab_nomerge"
- "slub_debug=FZ"
- "mce=0"
- "vsyscall=none"
- "init_on_free=1"
- "mds=full,nosmt"
- "page_alloc.shuffle=1"
- "randomize_kstack_offset=on"
- "efi_pstore.pstore_disable=1"
- "erst_disable"
- "spec_store_bypass_disable=on"
- "systemd.condition_needs_update=no"
- "quiet"
+ # From:
+ # - The extracted ISO's boot dir
+ # - Reverse engineered from:
+ # - `<tails iso squashfs>/usr/share/initramfs-tools/init`
+ # - `<tails iso squashfs>/usr/lib/live/boot/`
+ iso_options =
+ ## General options?
+ [
+ "initrd=${tails.initrd}"
+ "noprompt"
+ "timezone=Etc/UTC"
+ "config"
+ "noautologin"
+ "slab_nomerge"
+ "slub_debug=FZ"
+ "mce=0"
+ "vsyscall=none"
+ "init_on_free=1"
+ "mds=full,nosmt"
+ "page_alloc.shuffle=1"
+ "randomize_kstack_offset=on"
+ "efi_pstore.pstore_disable=1"
+ "erst_disable"
+ "spec_store_bypass_disable=on"
+ "systemd.condition_needs_update=no"
+ ]
+ ## Options for the first `init` script
+ ++ [
+ # Use the `*-live` scripts
+ "boot=live"
- "rootflags=loop"
- "root=${tails.root}"
- ];
+ # "splash"
+ "plymouth.enable=0"
+
+ # "quiet"
+ "debug"
+ ]
+ ## Options for the `*-live` `init` scripts
+ ++ [
+ "module=Tails"
+
+ # TODO: RO-makes the fromiso not work <2026-06-08>
+ # "live-boot.read-only=/dev/nvme0*"
+
+ # Don't store things persistently
+ "nopersistence"
+
+ "fromiso=/dev/nvme0n1p1/${tails.root}"
+ ];
in {
options.soispha.boot = {
enable = lib.mkEnableOption "Bootloader configuration";