Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aorith/media-stack
Personal media stack running in a NixOS systemd-nspawn container
https://github.com/aorith/media-stack
nix nixos systemd-nspawn
Last synced: 3 months ago
JSON representation
Personal media stack running in a NixOS systemd-nspawn container
- Host: GitHub
- URL: https://github.com/aorith/media-stack
- Owner: aorith
- License: mit
- Created: 2023-09-24T14:10:43.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-07T12:00:29.000Z (6 months ago)
- Last Synced: 2024-11-03T15:41:49.323Z (3 months ago)
- Topics: nix, nixos, systemd-nspawn
- Language: Nix
- Homepage:
- Size: 42 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Media Stack
> Media Stack inside of a systemd-nspawn NixOs Container
A modified version of [https://github.com/tfc/nspawn-nixos](https://github.com/tfc/nspawn-nixos) that uses a plain
directory instead of tarballs to generate the rootfs of the container.This configuration with a tarball (see "tarball" branch): ~700 MB
With plain FS: 17 MB (of course everything else is in the nix store)```sh
$ du -sh result/
12K result/
$ sudo du -sh /var/lib/machines/media-stack
17M /var/lib/machines/media-stack
```- Only works if the container runs in the same machine that builds it.
- Works on non NixOS linux machines, only nix is required.
- Containers must bind the local `/nix/store`, see [media-stack.nspawn](./media-stack.nspawn).
- Building and importing is faster.To create a new container:
- Clone this repository
- Edit [configuration.nix](./configuration.nix)
- Edit [Makefile](./Makefile) (change container name)
- Create a `*.nspawn` file with the container name (see [media-stack.nspawn](./media-stack.nspawn))