mirror of
https://github.com/MagicBOTAlex/nixos-server.git
synced 2026-02-04 05:39:18 +01:00
kubernetes vm building
This commit is contained in:
parent
4e2d73d546
commit
376912c631
15 changed files with 319 additions and 15 deletions
13
docker.nix
13
docker.nix
|
|
@ -1,5 +1,16 @@
|
|||
{pkgs, ...} : {
|
||||
{ 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue