mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
add specialisation for podman and docker
This commit is contained in:
parent
96b1969a19
commit
dd619edd86
2 changed files with 27 additions and 1 deletions
8
hosts/common/optional/docker.nix
Normal file
8
hosts/common/optional/docker.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
extraPackages = [
|
||||
pkgs.docker-compose
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -36,7 +36,6 @@
|
|||
"hosts/common/optional/pentesting.nix"
|
||||
"hosts/common/optional/gaming.nix"
|
||||
"hosts/common/optional/vbox.nix"
|
||||
"hosts/common/optional/podman.nix"
|
||||
"hosts/common/optional/printing.nix"
|
||||
"modules/services/ollama"
|
||||
])
|
||||
|
|
@ -49,6 +48,25 @@
|
|||
persistFolder = "/persist";
|
||||
};
|
||||
|
||||
specialisation = {
|
||||
podman = {
|
||||
inheritParentConfig = true;
|
||||
configuration = let
|
||||
podman = lib.custom.relativeToRoot "hosts/common/optional/podman.nix";
|
||||
in {
|
||||
imports = [podman];
|
||||
};
|
||||
};
|
||||
docker = {
|
||||
inheritParentConfig = true;
|
||||
configuration = let
|
||||
docker = lib.custom.relativeToRoot "hosts/common/optional/docker.nix";
|
||||
in {
|
||||
imports = [docker];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
enableIPv6 = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue