mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-10 04:40:05 +00:00
🚧 Finish user configuration loading and implement working workstation setup
This commit is contained in:
parent
54edba0070
commit
09c06d34e5
8 changed files with 137 additions and 16 deletions
20
modules/nixos/services/docker/default.nix
Normal file
20
modules/nixos/services/docker/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
lib,
|
||||
self,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (self) namespace;
|
||||
|
||||
cfg = config.${namespace}.services.docker;
|
||||
in {
|
||||
options.${namespace}.services.docker = {
|
||||
enable = mkEnableOption "the docker service.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# Enable docker
|
||||
virtualisation.docker.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue