feat(nix/host/orion): install docker
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m4s

This commit is contained in:
Price Hiller 2024-06-17 20:26:17 -05:00
parent fb96c885ca
commit 5f9c7f4c26
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,21 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
docker
docker-compose
];
virtualisation = {
oci-containers.backend = "docker";
containers.enable = true;
docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
autoPrune.enable = true;
package = pkgs.docker;
};
};
}

View File

@ -1,4 +1,9 @@
{ pkgs, config, ... }:
{
pkgs,
config,
lib,
...
}:
{
security.sudo.wheelNeedsPassword = false;
users.groups.price = { };
@ -10,6 +15,7 @@
extraGroups = [
"wheel"
"keyd"
(lib.mkIf config.virtualisation.docker.enable "docker")
];
group = "price";
shell = pkgs.zsh;