WIP: portainer service and host

This commit is contained in:
pazpi 2025-01-06 15:39:09 +01:00
parent 2673c763d5
commit 350fe15576
11 changed files with 182 additions and 2 deletions

View file

@ -143,4 +143,15 @@ in
# specialArgs = { };
};
portainer = nixpkgs.lib.nixosSystem {
pkgs = pkgs "x86_64-linux";
modules = [
myModule
proxmoxModule
./portainer
agenix.nixosModules.default
];
# specialArgs = { };
};
}

View file

@ -32,7 +32,6 @@
};
networking = {
# firewall.allowedTCPPorts = [ 80 ];
nameservers = [ "192.168.1.2" ];
};

View file

@ -0,0 +1,40 @@
{
config,
pkgs,
lib,
...
}:
let
portainerDataDir = "/var/lib/portainer"; # Define the directory for persistent data
in
{
age.secrets.watchtowerSecrets.file = ../../secrets/watchtower-secrets.age;
my = {
utils.commons.enable = true;
virtualisation = {
proxmox.enable = true;
portainer = {
enable = true;
enableWatchtower = true;
environmentSecrets = config.age.secrets.watchtowerSecrets.path;
};
};
};
time.timeZone = "Europe/Rome";
# Extra packages
environment.systemPackages = with pkgs; [ ];
services = {
openssh.enable = true;
};
networking = {
nameservers = [ "192.168.1.2" ];
};
system.stateVersion = "24.11";
}