Refactor: Rename system.server -> system.services
All checks were successful
check / check (push) Successful in 34s

Fix #6
This commit is contained in:
Florian RICHER 2025-01-29 20:05:56 +01:00
parent 453f364d4f
commit c8d1f9f65a
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
8 changed files with 12 additions and 12 deletions

View file

@ -0,0 +1,21 @@
{ config, lib, ... }:
with lib;
let
cfg = config.modules.system.services.docker;
in
{
options.modules.system.services.docker = {
enable = mkEnableOption ''
Enable docker with my custom configurations
'';
};
config = mkIf cfg.enable {
virtualisation.docker = {
enable = true;
};
virtualisation.oci-containers.backend = "docker";
users.users.florian.extraGroups = [ "docker" ];
};
}