mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
docker: enable rootless
This commit is contained in:
parent
1b1a02caa0
commit
2297f6506d
1 changed files with 8 additions and 3 deletions
|
@ -2,8 +2,13 @@
|
|||
{
|
||||
virtualisation = {
|
||||
docker = {
|
||||
enable = true;
|
||||
extraOptions = "--iptables=false";
|
||||
rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
daemon.settings = {
|
||||
iptables = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
|
@ -18,7 +23,7 @@
|
|||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
# allow libvirts internal network stuff
|
||||
networking.firewall.trustedInterfaces = [ "virbr0" "br0" "docker0" ];
|
||||
networking.firewall.trustedInterfaces = [ "virbr0" ];
|
||||
programs.virt-manager.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-viewer
|
||||
|
|
Loading…
Reference in a new issue