WIP: portainer service and host
This commit is contained in:
parent
2673c763d5
commit
350fe15576
11 changed files with 182 additions and 2 deletions
|
|
@ -143,4 +143,15 @@ in
|
|||
# specialArgs = { };
|
||||
};
|
||||
|
||||
portainer = nixpkgs.lib.nixosSystem {
|
||||
pkgs = pkgs "x86_64-linux";
|
||||
modules = [
|
||||
myModule
|
||||
proxmoxModule
|
||||
./portainer
|
||||
agenix.nixosModules.default
|
||||
];
|
||||
# specialArgs = { };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
};
|
||||
|
||||
networking = {
|
||||
# firewall.allowedTCPPorts = [ 80 ];
|
||||
nameservers = [ "192.168.1.2" ];
|
||||
};
|
||||
|
||||
|
|
|
|||
40
hosts/portainer/default.nix
Normal file
40
hosts/portainer/default.nix
Normal 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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue