2022-09-18 12:10:57 +08:00
|
|
|
#+TITLE: Build a Minimal NixOS LiveCD with swaywm
|
|
|
|
#+DATE: <2022-09-17 六>
|
|
|
|
|
|
|
|
* problem & solution
|
|
|
|
** unable to drop root
|
|
|
|
donot run under root
|
|
|
|
** in normal user, libseat permission deniened
|
|
|
|
add user in =video= group
|
|
|
|
login as user, not root
|
|
|
|
** egl error
|
|
|
|
enable 3D acceleration in VirtualBox
|
|
|
|
** config files from outside
|
|
|
|
[[../images/irc-nixiso.png]]
|
2022-09-23 14:53:51 +08:00
|
|
|
but it is copied using xoriso to =/iso/=
|
|
|
|
so I need to write a systemd service to automagically sync it at boot
|
|
|
|
** cleanup builds
|
|
|
|
=/nix/store/= takes too much space after build
|
|
|
|
#+BEGIN_SRC sh
|
|
|
|
unlink result
|
|
|
|
nix-store <path>
|
|
|
|
#+END_SRC
|
|
|
|
and there're a few tools for visualising disk size:
|
|
|
|
https://nixos.wiki/wiki/Cleaning_the_nix_store
|
2022-09-18 12:10:57 +08:00
|
|
|
|
|
|
|
* reference
|
|
|
|
** [[https://sr.ht/~guido/nixos-init-freedom/][nixos without systemd?]]
|
2022-09-19 15:42:43 +08:00
|
|
|
** [[https://gist.github.com/kborling/76805ade81ac5bfdd712df294208c878][an example config]]
|
|
|
|
** [[https://xeiaso.net/blog/super-bootable-64-2020-05-06][Xe: Super Bootable 64]]
|