Add distrobox
All checks were successful
check / check (push) Successful in 33s

This commit is contained in:
Florian RICHER 2024-06-18 19:44:19 +02:00
parent 361ecd917e
commit 34cbb44cc1
4 changed files with 21 additions and 0 deletions

View file

@ -37,6 +37,7 @@
server = {
ollama.enable = true;
distrobox.enable = true;
};
};
}

View file

@ -2,6 +2,7 @@
{
imports = [
./distrobox
./docker
./ollama
./openssh

View file

@ -0,0 +1,17 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.system.server.distrobox;
in
{
options.modules.system.server.distrobox = {
enable = mkEnableOption ''
Enable distrobox with my custom configurations
'';
};
config = mkIf cfg.enable {
modules.system.server.docker.enable = true;
environment.systemPackages = with pkgs; [ distrobox ];
};
}

View file

@ -15,5 +15,7 @@ in
enable = true;
enableNvidia = config.modules.system.hardware.nvidia.enable;
};
users.users.florian.extraGroups = [ "docker" ];
};
}