mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 15:38:57 -05:00
Moving Docker Stuff To Proper Config
This commit is contained in:
parent
fb4275e049
commit
32b83aeae5
3 changed files with 21 additions and 4 deletions
19
modules/common/utilities/docker.nix
Normal file
19
modules/common/utilities/docker.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
options = {
|
||||
docker = {
|
||||
enable = lib.mkEnableOption {
|
||||
description = "Enable docker";
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf (config.docker.enable) {
|
||||
home-manager.users.${config.user} = {
|
||||
home.packages = [
|
||||
pkgs.docker
|
||||
];
|
||||
};
|
||||
virtualization.docker.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue