mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 01:26:14 +01:00
Add NixNG container for ds3os
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
a0b302d906
commit
099d4133d3
|
@ -47,6 +47,7 @@
|
|||
nixos/systems/liveusb
|
||||
nixos/systems/blowhole
|
||||
|
||||
nixng/containers/ds3os
|
||||
overlays/udp-over-tcp.nix
|
||||
overlays/emacsclient-remote
|
||||
overlays/magic-screenshot
|
||||
|
|
31
nixng/containers/ds3os/default.nix
Normal file
31
nixng/containers/ds3os/default.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue