dotfiles/nixng/containers/ds3os/default.nix
magic_rb aff0158ef7
Reformat the whole flake using alejandra
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-03-02 22:17:03 +01:00

32 lines
663 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
'';
};
};
};
};
}