Big refactor (#1)
All checks were successful
check / check (push) Successful in 34s

Reviewed-on: https://gitea.mrdev023.fr/florian.richer/nixos/pulls/1
Co-authored-by: Florian RICHER <florian.richer@protonmail.com>
Co-committed-by: Florian RICHER <florian.richer@protonmail.com>
This commit is contained in:
Florian RICHER 2024-05-28 10:12:33 +02:00 committed by florian.richer
parent e9329e63dc
commit b7f82f87e8
84 changed files with 1100 additions and 1247 deletions

View file

@ -0,0 +1,19 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.system.server.docker;
in
{
options.modules.system.server.docker = {
enable = mkEnableOption ''
Enable docker with my custom configurations
'';
};
config = mkIf cfg.enable {
virtualisation.docker = {
enable = true;
enableNvidia = config.modules.system.hardware.nvidia.enable;
};
};
}