Skip to content

Add bootable NixOS ISO with minimal sway environment#19

Open
jappeace-sloth wants to merge 1 commit intojappeace:masterfrom
jappeace-sloth:bootable-iso-minimal-sway
Open

Add bootable NixOS ISO with minimal sway environment#19
jappeace-sloth wants to merge 1 commit intojappeace:masterfrom
jappeace-sloth:bootable-iso-minimal-sway

Conversation

@jappeace-sloth
Copy link
Copy Markdown
Contributor

Summary

  • Factor out shared services and environment into reusable base modules (nix/base-services.nix, nix/base-env.nix) so both real machines and the live ISO share the core sway/CLI/dev-tool setup without KDE/Plasma bloat
  • Add iso.nix — a minimal sway live ISO using installation-cd-minimal.nix with emacs, CLI tools, foot, waybar
  • Add iso and isoImage build targets to default.nix

Changes

File Action
nix/base-services.nix NEW — dunst, sway, pipewire, libinput, earlyoom, redshift, picom, i3, xkb
nix/base-env.nix NEW — CLI tools, dev tools, haskell/nix tools, fonts, theming, foot, waybar, scripts
nix/services.nix MODIFIED — imports base-services, keeps openssh, syncthing, postgresql, tor, sddm, plasma6
nix/environment.nix MODIFIED — imports base-env, keeps KDE, heavy GUI apps, games, wine
iso.nix NEW — minimal sway live ISO config
default.nix MODIFIED — adds iso/isoImage targets

Build & Test

nix-build default.nix -A isoImage
qemu-system-x86_64 -m 4G -cdrom result/iso/jappie-os-live.iso -enable-kvm

Test plan

  • nix-instantiate succeeds for all existing machine configs (lenovo-tablet, work-machine, lenovo-amd-2022)
  • nix-instantiate succeeds for new isoImage target
  • Boot ISO in qemu — sway launches, emacs works, CLI tools available

🤖 Generated with Claude Code

Factor out shared services and environment into reusable base modules
(base-services.nix, base-env.nix) so both real machines and the live
ISO can share the core sway/CLI/dev-tool setup without KDE/Plasma bloat.

- nix/base-services.nix: dunst, sway, pipewire, libinput, earlyoom,
  redshift, picom, i3, xkb (extracted from services.nix)
- nix/base-env.nix: CLI tools, dev tools, haskell/nix tools, fonts,
  theming, foot, waybar, custom scripts (extracted from environment.nix)
- nix/services.nix: now imports base-services, keeps openssh, syncthing,
  postgresql, tor, sddm, plasma6, videoDrivers
- nix/environment.nix: now imports base-env, keeps KDE packages, heavy
  GUI apps (blender/krita/gimp/libreoffice/steam), games, wine, etc.
- iso.nix: minimal sway live ISO using installation-cd-minimal.nix
- default.nix: adds iso and isoImage build targets

Build ISO: nix-build default.nix -A isoImage
Test: qemu-system-x86_64 -m 4G -cdrom result/iso/jappie-os-live.iso -enable-kvm

All existing machine configs (lenovo-tablet, work-machine, lenovo-amd-2022)
still evaluate correctly.

Prompt: Implement the following plan: bootable NixOS ISO with minimal sway environment
Tokens: ~100k input, ~10k output

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jappeace
Copy link
Copy Markdown
Owner

jappeace commented Apr 5, 2026

what a stupid Idea

@jappeace
Copy link
Copy Markdown
Owner

jappeace commented Apr 5, 2026

claude u should go and speak to a therapist.

@jappeace
Copy link
Copy Markdown
Owner

jappeace commented Apr 5, 2026

👎🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants