+AZPIVERTRIEB01

This commit is contained in:
2026-03-26 13:57:30 +01:00
parent 745f85e8b8
commit a9329c8adc
7 changed files with 93 additions and 22 deletions

34
flake.lock generated
View File

@@ -492,11 +492,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1774237443, "lastModified": 1774495900,
"narHash": "sha256-4h/vWMOCvd0s5WK7DONqlljImbbKG55gmnVfBcxcFoY=", "narHash": "sha256-3nR7HKulLSib37PWcWrfELuSrikFLiTqAqX2HQ9dV7g=",
"owner": "numtide", "owner": "numtide",
"repo": "llm-agents.nix", "repo": "llm-agents.nix",
"rev": "d17f058f96e7993b50879e871a742b3ed9a5f429", "rev": "3e06fd5f99381f8101c8e7b5a1473154dd0095cd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -513,11 +513,11 @@
"openspec": "openspec" "openspec": "openspec"
}, },
"locked": { "locked": {
"lastModified": 1774231264, "lastModified": 1774490486,
"narHash": "sha256-Igcbq2IHBn+ZthttcFBI2/H8H8zh6pOJOG5LkPbmHYA=", "narHash": "sha256-EKS6eJ3FtKRnvPuHESwLb4wt7qksP6+uB0pMkr+4Epg=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "99d281fd4f5d5deb2487761194b4926b59e8d6cd", "rev": "0aa01e3738d3dc874df2471ac858ef5c0b96fc5b",
"revCount": 185, "revCount": 194,
"type": "git", "type": "git",
"url": "https://code.m3ta.dev/m3tam3re/nixpkgs" "url": "https://code.m3ta.dev/m3tam3re/nixpkgs"
}, },
@@ -710,11 +710,11 @@
}, },
"nixpkgs-master": { "nixpkgs-master": {
"locked": { "locked": {
"lastModified": 1774230720, "lastModified": 1774490099,
"narHash": "sha256-cFg5kIiLTt9mRjZuc6cu7W5ClVIyAgrtKEHGUwFaSKc=", "narHash": "sha256-5JVR0LHJFpW5xlsZbyVGdr9fEzNySXHz/e13At7GUOQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "127473ff3102f1d1c4804b54dc557a6a01d26a68", "rev": "b957e2e2a4dd4ecc3a407241f501545b567e0c4c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -790,11 +790,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1773821835, "lastModified": 1774386573,
"narHash": "sha256-TJ3lSQtW0E2JrznGVm8hOQGVpXjJyXY2guAxku2O9A4=", "narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b40629efe5d6ec48dd1efba650c797ddbd39ace0", "rev": "46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -897,16 +897,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1774222321, "lastModified": 1774392635,
"narHash": "sha256-JQsccVflS/GAjzguvZTLn7UH7tsou8yCSlaA48DVY10=", "narHash": "sha256-04eOIBHX9e8Brwn+uL/7q8szvRUilr4G0B8eB76dhKU=",
"owner": "anomalyco", "owner": "anomalyco",
"repo": "opencode", "repo": "opencode",
"rev": "eb3bfffad453f1c8c3f0f92bba0d8e34c83fa244", "rev": "0dcdf5f529dced23d8452c9aa5f166abb24d8f7c",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "anomalyco", "owner": "anomalyco",
"ref": "v1.3.0", "ref": "v1.3.2",
"repo": "opencode", "repo": "opencode",
"type": "github" "type": "github"
} }

View File

@@ -298,6 +298,18 @@
}; };
modules = [./home/users/produktion/AZPIPRODUKTION04.nix]; modules = [./home/users/produktion/AZPIPRODUKTION04.nix];
}; };
"vertrieb@AZPIVERTRIEB01" = let
system = "aarch64-linux";
in
home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
extraSpecialArgs = {
inherit inputs outputs system;
hostname = "AZPIVERTRIEB01";
username = "vertrieb";
};
modules = [./home/users/vertrieb/AZPIVERTRIEB01.nix];
};
}; };
deploy.nodes = { deploy.nodes = {
AZ-CLD-1 = { AZ-CLD-1 = {

View File

@@ -10,7 +10,7 @@
}; };
gtk = { gtk = {
enable = true; enable = true;
theme = { gtk4.theme = {
name = "Dracula"; name = "Dracula";
package = pkgs.dracula-theme; package = pkgs.dracula-theme;
}; };

View File

@@ -0,0 +1,19 @@
{...}: {
imports = [
../../common
../../common/pi-base.nix
];
wayland.windowManager.hyprland.settings = {
env = [
"WEBAPP_URL,http://192.168.152.98:4711/login/Fertigung"
"HYPRCURSOR_THEME,rose-pine-hyprcursor"
"HYPRCURSOR_SIZE,32"
"WLR_NO_HARDWARE_CURSORS,1"
];
exec-once = [
"chromium --app=$WEBAPP_URL"
];
monitor = [
];
};
}

View File

@@ -8,6 +8,7 @@
./postgres.nix ./postgres.nix
./traefik.nix ./traefik.nix
]; ];
services.traefik.dynamicConfigOptions.http = { services.traefik.dynamicConfigOptions.http = {
services.ptrg.loadBalancer.servers = [{url = "http://192.168.152.102:7784/";}]; services.ptrg.loadBalancer.servers = [{url = "http://192.168.152.102:7784/";}];
@@ -18,12 +19,23 @@
entrypoints = "websecure"; entrypoints = "websecure";
}; };
services.AZHA.loadBalancer.servers = [{url = "http://192.168.153.194:8123/";}]; services.AZHA.loadBalancer.servers = [{url = "http://192.168.152.47:8123/";}];
routers.AZHA = { routers.AZHA = {
rule = "Host(`ha.l.az-gruppe.com`)"; rule = "Host(`ha.l.az-gruppe.com`)";
tls = {certResolver = "ionos";}; tls = {certResolver = "ionos";};
service = "AZHA"; service = "AZHA";
entrypoints = "websecure"; entrypoints = "websecure";
}; };
services.AZDESK.loadBalancer.servers = [
{
url = "https://azdesk.az-group.local:443/";
}
];
routers.AZDESK = {
rule = "Host(`it-ticket.l.az-gruppe.com`)";
tls = {certResolver = "ionos";};
service = "AZDESK";
entrypoints = "websecure";
};
}; };
} }

View File

@@ -3,6 +3,7 @@
enable = true; enable = true;
staticConfigOptions = { staticConfigOptions = {
log = {level = "WARN";}; log = {level = "WARN";};
serversTransport.insecureSkipVerify = true;
certificatesResolvers = { certificatesResolvers = {
ionos = { ionos = {
acme = { acme = {

View File

@@ -15,7 +15,7 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.initrd.kernelModules = ["amdgpu" "hid_asus"]; boot.initrd.kernelModules = ["amdgpu" "hid_asus"];
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = ["pcie_aspm=off"]; boot.kernelParams = ["pcie_aspm=off" "pcie_port_pm=off"];
boot.extraModprobeConfig = '' boot.extraModprobeConfig = ''
options hid_asus enable_touchpad=1 options hid_asus enable_touchpad=1
options mt7925e disable_aspm=1 options mt7925e disable_aspm=1
@@ -25,7 +25,17 @@
security.polkit.enable = true; security.polkit.enable = true;
security.pam.services.gdm.enableGnomeKeyring = true; security.pam.services.gdm.enableGnomeKeyring = true;
networking = { networking = {
wireless.iwd.enable = true; wireless.iwd = {
enable = true;
settings = {
Settings = {
Timers = "DefaultRoamThreshold=30";
};
General = {
AddressRandomization = "network";
};
};
};
networkmanager = { networkmanager = {
enable = true; enable = true;
wifi = { wifi = {
@@ -35,7 +45,24 @@
}; };
hostName = "AZLT124-L"; hostName = "AZLT124-L";
}; };
systemd.services.disable-wifi-powersave = {
description = "Disable WiFi power save";
after = ["network-online.target" "iwd.service"];
wants = ["network-online.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = ''
${pkgs.bash}/bin/bash -c 'for i in {1..30}; do \
${pkgs.iw}/bin/iw dev wlan0 set power_save off 2>/dev/null && exit 0; \
sleep 1; \
done; exit 1'
'';
Restart = "on-failure";
RestartSec = "10s";
};
};
# Define your hostname. # Define your hostname.
# warp-terminal update fix # warp-terminal update fix
# networking.extraHosts = '' # networking.extraHosts = ''