Skip to content

Commit

Permalink
Remove buggy qemu-user-static module
Browse files Browse the repository at this point in the history
...
  • Loading branch information
kugland committed Mar 30, 2024
1 parent 44cbcb8 commit 01ab610
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 76 deletions.
30 changes: 0 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,36 +20,6 @@

# Modules

## qemu-user-static

[**qemu-user-static**](./modules/qemu-user-static.nix) enables executing foreign-architecture
containers with QEMU and binfmt_misc (only available on `x86_64-linux`). This module pulls an OCI
container that automagically sets up the necessary configuration, and sets up an one-shot systemd
service to start the container on boot.

To use this module, add the following to your `configuration.nix`:

```nix
{
imports = [ pkgs.nur.repos.kugland.modules.qemu-user-static ];
virtualisation.qemu-user-static = {
enable = true;
autoStart = true; # If you want the container to start on boot
};
}
```

To check if the module is working, try:

```sh
$ docker run --rm -it --platform linux/s390x alpine uname -m
```

If everything is set up correctly, you should see `s390x` printed to the terminal, which, unless
you actually have a s390x machine, means that the container is being executed with QEMU.

For more information, check out `qemu-user-static`’s [GitHub repository](https://github.com/multiarch/qemu-user-static).

## google-authenticator-singlesecret

**I’m not a security expert, so use this at your own risk.**
Expand Down
1 change: 0 additions & 1 deletion modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
# Add your NixOS modules here
#
# my-module = ./my-module;
qemu-user-static = ./qemu-user-static.nix;
google-authenticator-singlesecret = ./google-authenticator-singlesecret;
}
45 changes: 0 additions & 45 deletions modules/qemu-user-static.nix

This file was deleted.

0 comments on commit 01ab610

Please sign in to comment.