init
This commit is contained in:
14
modules/nixos/virtualize/docker.nix
Normal file
14
modules/nixos/virtualize/docker.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, pkgs, lib, username, ... }:
|
||||
{
|
||||
# Enable Docker
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
|
||||
# Enable Podman
|
||||
# virtualisation.podman.enable = true;
|
||||
#virtualisation.podman.dockerCompat = true; # Create a `docker` alias for podman, to use it as a drop-in replacement
|
||||
|
||||
users.users.${username}.extraGroups = lib.mkIf config.virtualisation.docker.enable [ "docker" ];
|
||||
}
|
||||
Reference in New Issue
Block a user