Changed option namespace for better compatibility

This commit is contained in:
pazpi 2024-08-27 17:49:31 +02:00
parent fe8045ee55
commit 8b25f46384
26 changed files with 407 additions and 232 deletions

View file

@ -1,63 +1,31 @@
{ config, pkgs, ... }:
let
# parameters = import ./parameters.nix { };
# GID = 888;
# user = "rtorrent";
# passwordHash = "$y$j9T$dA94KVg1/jYLqclQQbTDk.$cnfxBWUN8P4shr8Kkipv5bU/RCtQNoAwYFDZ0X/BYs5";
timeZone = "Europe/Rome";
defaultLocale = "en_US.UTF-8";
in
{
config,
pkgs,
lib,
...
}:
{
my = {
utils.commons.enable = true;
commons.enable = true;
proxmox.enable = true;
download-pod = {
enable = false;
proxy.enable = false;
};
services.podmanPods = {
mywebapp = {
name = "mywebapp";
ports = [
"9090:80"
"9443:443"
];
containers = {
webserver = {
enable = true;
image = "nginx";
volumes = [
"aaa:/config"
"bbb:/data"
];
};
appserver = {
image = "my-custom-app:latest";
};
};
networking.tailscale = {
enable = false;
exitNode = "vps";
# authKeyFile = builtins.toFile "authKey" ''${parameters.tailscaleAuthKey}'';
};
database = {
name = "database";
ports = [
"3333:4444"
"5432:5432"
];
containers = {
postgres = {
image = "postgres:13";
};
};
services.download-pod = {
enable = true;
proxy.enable = false;
};
virtualisation = {
proxmox.enable = true;
};
};
time.timeZone = "Europe/Rome";
# Extra packages
environment.systemPackages = with pkgs; [ ];
@ -65,13 +33,5 @@ in
openssh.enable = true;
};
tailscale = {
enable = false;
exitNode = "vps";
# authKeyFile = builtins.toFile "authKey" ''${parameters.tailscaleAuthKey}'';
};
time.timeZone = timeZone;
system.stateVersion = "24.05";
}