mirror of
https://github.com/MagicBOTAlex/nixos-server.git
synced 2026-02-04 05:39:18 +01:00
16 lines
398 B
Nix
16 lines
398 B
Nix
{ pkgs, ... }: {
|
|
virtualisation.docker.enable = true;
|
|
|
|
hardware.nvidia-container-toolkit.enable = true;
|
|
|
|
systemd.user.services.force-start-docker-containers = {
|
|
description = "docker stupid, so this starts the docker composes";
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
serviceConfig = {
|
|
ExecStart = "/home/botserver/scripts/docker/up.sh";
|
|
Type = "oneshot";
|
|
};
|
|
};
|
|
}
|