mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
22 lines
399 B
Nix
22 lines
399 B
Nix
{ config, lib, pkgs, myName, storageDriver ? null, ... }:
|
|
|
|
assert lib.asserts.assertOneOf "storageDriver" storageDriver [
|
|
null
|
|
"aufs"
|
|
"btrfs"
|
|
"devicemapper"
|
|
"overlay"
|
|
"overlay2"
|
|
"zfs"
|
|
];
|
|
|
|
{
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
enableOnBoot = true;
|
|
storageDriver = storageDriver;
|
|
autoPrune.enable = true;
|
|
};
|
|
users.users.${myName}.extraGroups = [ "docker" ];
|
|
}
|