feat(nix/host/orion): install docker
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m4s
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m4s
This commit is contained in:
parent
fb96c885ca
commit
5f9c7f4c26
21
hosts/orion/modules/services/docker.nix
Normal file
21
hosts/orion/modules/services/docker.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -1,4 +1,9 @@
|
|||||||
{ pkgs, config, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
users.groups.price = { };
|
users.groups.price = { };
|
||||||
@ -10,6 +15,7 @@
|
|||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel"
|
"wheel"
|
||||||
"keyd"
|
"keyd"
|
||||||
|
(lib.mkIf config.virtualisation.docker.enable "docker")
|
||||||
];
|
];
|
||||||
group = "price";
|
group = "price";
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
|
Loading…
Reference in New Issue
Block a user