aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-30 14:57:05 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-30 14:57:05 +0200
commitd47d4e93ab8682710e80eec8c7c9d6a7d2f14202 (patch)
treea0039fb674a7150c0338707606a20c9d62ced1e5 /nix
parent2d9adf82d04261f420af4cc5482e442297741a5d (diff)
downloadnixcfg-d47d4e93ab8682710e80eec8c7c9d6a7d2f14202.tar.gz
nixcfg-d47d4e93ab8682710e80eec8c7c9d6a7d2f14202.zip
Work on drone runner as VM
Diffstat (limited to 'nix')
-rw-r--r--nix/configuration.nix2
-rw-r--r--nix/deuxfleurs.nix11
2 files changed, 13 insertions, 0 deletions
diff --git a/nix/configuration.nix b/nix/configuration.nix
index 984307c..825cab2 100644
--- a/nix/configuration.nix
+++ b/nix/configuration.nix
@@ -71,6 +71,8 @@ SystemMaxUse=1G
docker-compose
wireguard
wesher
+ qemu
+ qemu_kvm
];
programs.vim.defaultEditor = true;
diff --git a/nix/deuxfleurs.nix b/nix/deuxfleurs.nix
index 055ac55..d20ea5d 100644
--- a/nix/deuxfleurs.nix
+++ b/nix/deuxfleurs.nix
@@ -151,6 +151,12 @@ in
services.nomad.enable = true;
services.nomad.package = pkgs.nomad_1_1;
+ services.nomad.extraPackages = [
+ pkgs.glibc
+ pkgs.zstd
+ pkgs.qemu
+ pkgs.qemu_kvm
+ ];
services.nomad.settings =
(if cfg.is_raft_server
then { server = {
@@ -201,6 +207,11 @@ in
];
}
];
+ qemu = [
+ {
+ enabled = true;
+ }
+ ];
}
];
};