Enable docker
This commit is contained in:
parent
9aca052605
commit
1caf6855f0
2 changed files with 4 additions and 5 deletions
|
@ -1,11 +1,9 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
boot.binfmt.emulatedSystems = ["aarch64-linux" "i686-linux" "riscv64-linux"];
|
||||
nix.extraOptions = ''
|
||||
extra-platforms = aarch64-linux arm-linux i686-linux riscv64-linux
|
||||
'';
|
||||
|
||||
# XXX For some reason `docker buildx` isn't aware of this:
|
||||
# https://discourse.nixos.org/t/docker-ignoring-platform-when-run-in-nixos/21120/14
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
...
|
||||
}: {
|
||||
virtualisation.podman.enable = true;
|
||||
virtualisation.docker.enable = true;
|
||||
users.users.${config.ccr.username}.extraGroups = ["docker"];
|
||||
environment.systemPackages = with pkgs; [
|
||||
docker-compose
|
||||
|
|
Loading…
Add table
Reference in a new issue