dotfiles/nixng/containers/ds3os/default.nix
magic_rb 3f2887b439
Switch containers to stable
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-07-03 17:39:49 +02:00

32 lines
670 B
Nix

{
inputs,
config,
...
}: {
flake.nixngConfigurations.ds3os = inputs.nixng.nglib.makeSystem {
system = "x86_64-linux";
name = "ds3os";
nixpkgs = inputs.nixpkgs-stable;
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
'';
};
};
};
};
}