This commit is contained in:
parent
361ecd917e
commit
34cbb44cc1
4 changed files with 21 additions and 0 deletions
|
@ -37,6 +37,7 @@
|
|||
|
||||
server = {
|
||||
ollama.enable = true;
|
||||
distrobox.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./distrobox
|
||||
./docker
|
||||
./ollama
|
||||
./openssh
|
||||
|
|
17
modules/system/server/distrobox/default.nix
Normal file
17
modules/system/server/distrobox/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -15,5 +15,7 @@ in
|
|||
enable = true;
|
||||
enableNvidia = config.modules.system.hardware.nvidia.enable;
|
||||
};
|
||||
|
||||
users.users.florian.extraGroups = [ "docker" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue