KDE specific themeing because fun
This commit is contained in:
parent
f2055e0d10
commit
531e37fbe3
6 changed files with 347 additions and 0 deletions
32
modules/programs/docker.nix
Normal file
32
modules/programs/docker.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# TODO make exclusive with docker
|
||||
options.mods.docker = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
example = false;
|
||||
type = lib.types.bool;
|
||||
description = "Enables and configures docker";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.mods.docker.enable (
|
||||
lib.optionalAttrs (options ? virtualisation.docker) {
|
||||
environment.systemPackages = with pkgs; [
|
||||
docker-compose
|
||||
dive
|
||||
];
|
||||
virtualisation = {
|
||||
containers.enable = true;
|
||||
docker = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue