UP | HOME

Build a Minimal NixOS LiveCD with swaywm

Table of Contents

1. problem & solution

1.1. unable to drop root

donot run under root

1.2. in normal user, libseat permission deniened

add user in video group
login as user, not root

1.3. egl error

enable 3D acceleration in VirtualBox

1.4. config files from outside

irc-nixiso.png
but it is copied using xoriso to /iso/
so I need to write a systemd service to automagically sync it at boot

1.5. cleanup builds

/nix/store/ takes too much space after build

unlink result
nix-store <path>

and there're a few tools for visualising disk size:
https://nixos.wiki/wiki/Cleaning_the_nix_store

2. reference

Date: 2022-09-17 六 00:00

Author: dongdigua

Created: 2022-10-23 日 13:20