2023-06-13 23:04:43 +02:00
|
|
|
{
|
2024-03-02 22:05:30 +01:00
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2023-06-13 23:04:43 +02:00
|
|
|
flake.nixngConfigurations.ds3os = inputs.nixng.nglib.makeSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
name = "ds3os";
|
|
|
|
inherit (inputs) nixpkgs;
|
2024-03-02 22:05:30 +01:00
|
|
|
config = {pkgs, ...}: {
|
|
|
|
config = {
|
|
|
|
dumb-init = {
|
|
|
|
enable = true;
|
|
|
|
type.services = {};
|
|
|
|
};
|
2023-06-13 23:04:43 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
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
|
|
|
|
'';
|
2023-06-13 23:04:43 +02:00
|
|
|
};
|
|
|
|
};
|
2024-03-02 22:05:30 +01:00
|
|
|
};
|
2023-06-13 23:04:43 +02:00
|
|
|
};
|
|
|
|
}
|