mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 01:21: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 = {
|
virtualisation = {
|
||||||
docker = {
|
docker = {
|
||||||
enable = true;
|
rootless = {
|
||||||
extraOptions = "--iptables=false";
|
enable = true;
|
||||||
|
setSocketVariable = true;
|
||||||
|
daemon.settings = {
|
||||||
|
iptables = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -18,7 +23,7 @@
|
||||||
spiceUSBRedirection.enable = true;
|
spiceUSBRedirection.enable = true;
|
||||||
};
|
};
|
||||||
# allow libvirts internal network stuff
|
# allow libvirts internal network stuff
|
||||||
networking.firewall.trustedInterfaces = [ "virbr0" "br0" "docker0" ];
|
networking.firewall.trustedInterfaces = [ "virbr0" ];
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
virt-viewer
|
virt-viewer
|
||||||
|
|
Loading…
Reference in a new issue