1

Add portainer service

This commit is contained in:
2023-08-31 23:45:49 +02:00
parent 2eedda95e4
commit 782b222a9a
2 changed files with 30 additions and 0 deletions

View File

@ -9,6 +9,9 @@
[ # Include the results of the hardware scan.
./hardware-configuration.nix
<home-manager/nixos>
# Include Services
./services/portainer.nix
];
# Bootloader.
@ -77,6 +80,7 @@
home.packages = with pkgs; [
lazygit
keychain
alejandra
];
programs = {

View File

@ -0,0 +1,26 @@
{config, lib, pkgs, ...}:
{
virtualisation.oci-containers.containers.portainer = {
image = "portainer/portainer-ce:latest";
autoStart = true;
dependsOn = [];
ports = [
"8000:8000"
"9443:9443"
];
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
"portainer_config:/data"
];
environment = {};
extraOptions = [
# "--restart=always" # Conflicts with NixOS' default of using --rm
];
};
}