This commit is contained in:
mjallen18
2025-11-21 11:28:17 -06:00
parent 9cadcf2eed
commit d49a2744d2
5 changed files with 18 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, namespace, ... }:
{ config, lib, ... }:
with lib;
let
cfg = config.mjallen.programs.waybar;

View File

@@ -25,7 +25,10 @@ in
config = lib.mkIf cfg.enable {
boot = {
kernelModules = [ "nct6775" "k10temp" ];
kernelModules = [
"nct6775"
"k10temp"
];
kernelParams = [ (if cfg.enable then "amdgpu.ppfeaturemask=0xffffffff" else null) ];
};

View File

@@ -22,8 +22,14 @@ in
# Open firewall for authentik if enabled
networking.firewall = mkIf cfg.openFirewall {
allowedTCPPorts = [ cfg.port 4822 ];
allowedUDPPorts = [ cfg.port 4822 ];
allowedTCPPorts = [
cfg.port
4822
];
allowedUDPPorts = [
cfg.port
4822
];
};
# Ensure PostgreSQL is configured for authentik

View File

@@ -44,8 +44,8 @@ in
extraOptions = [ "--device=/dev/dri" ];
volumes = [
"${cfg.configPath}:/config"
"${cfg.moviesPath}:/library/movies"
"${cfg.tvPath}:/library/tv"
"${cfg.moviesPath}:/libraries/movies"
"${cfg.tvPath}:/libraries/tv"
"${cfg.transcodePath}:/transcode"
];
ports = [