mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
refactor: move last legacy_modules to modules
This commit is contained in:
parent
d463f4d1af
commit
d50bbb3d12
49 changed files with 580 additions and 459 deletions
23
modules/programs/docker.nix
Normal file
23
modules/programs/docker.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Enabled when: always
|
||||
{
|
||||
username,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = [
|
||||
pkgs.docker
|
||||
pkgs.docker-compose
|
||||
];
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
enableOnBoot = lib.mkDefault false;
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
virtualisation.oci-containers = {
|
||||
backend = "docker";
|
||||
};
|
||||
|
||||
users.extraGroups.docker.members = [username];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue