Too many bugs to deal with unfortunately. Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
33 lines
611 B
Nix
33 lines
611 B
Nix
{
|
|
username ? throw "username argument is required",
|
|
}:
|
|
{
|
|
config,
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
virtualisation.docker.rootless = {
|
|
enable = true;
|
|
setSocketVariable = true;
|
|
enableOnBoot = false;
|
|
storageDriver = "btrfs";
|
|
|
|
daemon.settings = {
|
|
experimental = true;
|
|
ipv6 = true;
|
|
fixed-cidr-v6 = "fd00::/80";
|
|
};
|
|
|
|
autoPrune = {
|
|
enable = true;
|
|
flags = [ "--all" ];
|
|
};
|
|
};
|
|
|
|
environment.persistence."/persist".users.${username}.directories = [ ".local/share/docker" ];
|
|
|
|
home-manager.users.${username}.home.packages = with pkgs; [ docker-compose ];
|
|
}
|