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: 11 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 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T12:00:29.000Z (over 1 year ago)
- Last Synced: 2025-03-25T17:46:39.434Z (12 months ago)
- Topics: nix, nixos, systemd-nspawn
- Language: Nix
- Homepage:
- Size: 42 KB
- Stars: 6
- 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))