Add NixNG container for ds3os

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-06-13 23:04:43 +02:00
parent a0b302d906
commit 099d4133d3
2 changed files with 32 additions and 0 deletions

View file

@ -47,6 +47,7 @@
nixos/systems/liveusb
nixos/systems/blowhole
nixng/containers/ds3os
overlays/udp-over-tcp.nix
overlays/emacsclient-remote
overlays/magic-screenshot

View file

@ -0,0 +1,31 @@
{ inputs, config, ... }:
{
flake.nixngConfigurations.ds3os = inputs.nixng.nglib.makeSystem {
system = "x86_64-linux";
name = "ds3os";
inherit (inputs) nixpkgs;
config =
{ pkgs, ... }:
{
config = {
dumb-init = {
enable = true;
type.services = { };
};
init.services.ds3os = {
enabled = true;
shutdownOnExit = true;
script =
let
pkgs' = pkgs.appendOverlays [ config.flake.overlays.ds3os ];
in
pkgs.writeShellScript "ds3os"
''
exec ${pkgs'.ds3os}/bin/ds3os
'';
};
};
};
};
}