Refactor: Rename system.server -> system.services
All checks were successful
check / check (push) Successful in 34s
All checks were successful
check / check (push) Successful in 34s
Fix #6
This commit is contained in:
parent
453f364d4f
commit
c8d1f9f65a
8 changed files with 12 additions and 12 deletions
21
modules/system/services/docker/default.nix
Normal file
21
modules/system/services/docker/default.nix
Normal 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" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue