dotfiles/nixng/containers/ds3os/default.nix
Magic_RB 099d4133d3 Add NixNG container for ds3os
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-06-16 16:08:09 +02:00

32 lines
738 B
Nix

{ 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
'';
};
};
};
};
}