Move all files
This commit is contained in:
parent
d0e303d0f9
commit
34c8b954e5
45 changed files with 352 additions and 645 deletions
19
modules/server/docker/default.nix
Normal file
19
modules/server/docker/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.server.docker;
|
||||
in
|
||||
{
|
||||
options.modules.server.docker = {
|
||||
enable = mkEnableOption ''
|
||||
Enable docker with my custom configurations
|
||||
'';
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
enableNvidia = config.modules.system.nvidia.enable;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue