Skip to content

Commit

Permalink
feat(docker): switch to rootfull
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Jul 17, 2024
1 parent 0e6c60c commit 7eed4b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions system/virtualisation.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
{pkgs, ...}: {
virtualisation.docker.rootless = {
{...}: {
virtualisation.docker = {
enable = true;
setSocketVariable = true;
};

# https://rootlesscontaine.rs/getting-started/common/cgroup2/#enabling-cpu-cpuset-and-io-delegation
# For minikube
# Writes to /etc/systemd/system/[email protected]/overrides.conf
systemd.services."user@".serviceConfig = {
Delegate = "cpu cpuset io memory pids";
};
# systemd.services."user@".serviceConfig = {
# Delegate = "cpu cpuset io memory pids";
# };

virtualisation.libvirtd.enable = true;

virtualisation.podman = {
enable = true;
};

users.users.farlion.extraGroups = ["libvirtd" "kvm"];
users.users.farlion.extraGroups = ["libvirtd" "kvm" "docker"];
}

0 comments on commit 7eed4b9

Please sign in to comment.