diff --git a/flake.nix b/flake.nix index f003b34..99f9812 100644 --- a/flake.nix +++ b/flake.nix @@ -47,6 +47,7 @@ nixos/systems/liveusb nixos/systems/blowhole + nixng/containers/ds3os overlays/udp-over-tcp.nix overlays/emacsclient-remote overlays/magic-screenshot diff --git a/nixng/containers/ds3os/default.nix b/nixng/containers/ds3os/default.nix new file mode 100644 index 0000000..47eb493 --- /dev/null +++ b/nixng/containers/ds3os/default.nix @@ -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 + ''; + }; + }; + }; + }; +}