Feature: Docker Module

This commit is contained in:
marthsincemelee
2023-10-30 21:53:18 +01:00
parent 6ba6b3dca6
commit 70076accf1
3 changed files with 24 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ in
gnome_apps = true;
};
radarr.enable = true;
docker.enable = true;
};
my.hardware = {
+1
View File
@@ -6,5 +6,6 @@
./zsh
./prowlarr
./radarr
./docker
];
}
+22
View File
@@ -0,0 +1,22 @@
# Docker related settings
{ config, inputs, lib, options, pkgs, ... }:
let
cfg = config.my.profiles.docker;
in
{
options.my.profiles.docker = with lib; {
enable = mkEnableOption "docker configuration";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
docker
docker-compose
];
virtualisation.docker = {
enable = true;
autoPrune.enable = true;
};
};
}