format
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, namespace, ... }:
|
{ config, lib, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.mjallen.programs.waybar;
|
cfg = config.mjallen.programs.waybar;
|
||||||
|
|||||||
@@ -25,7 +25,10 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
boot = {
|
boot = {
|
||||||
kernelModules = [ "nct6775" "k10temp" ];
|
kernelModules = [
|
||||||
|
"nct6775"
|
||||||
|
"k10temp"
|
||||||
|
];
|
||||||
kernelParams = [ (if cfg.enable then "amdgpu.ppfeaturemask=0xffffffff" else null) ];
|
kernelParams = [ (if cfg.enable then "amdgpu.ppfeaturemask=0xffffffff" else null) ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,14 @@ in
|
|||||||
|
|
||||||
# Open firewall for authentik if enabled
|
# Open firewall for authentik if enabled
|
||||||
networking.firewall = mkIf cfg.openFirewall {
|
networking.firewall = mkIf cfg.openFirewall {
|
||||||
allowedTCPPorts = [ cfg.port 4822 ];
|
allowedTCPPorts = [
|
||||||
allowedUDPPorts = [ cfg.port 4822 ];
|
cfg.port
|
||||||
|
4822
|
||||||
|
];
|
||||||
|
allowedUDPPorts = [
|
||||||
|
cfg.port
|
||||||
|
4822
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Ensure PostgreSQL is configured for authentik
|
# Ensure PostgreSQL is configured for authentik
|
||||||
@@ -56,8 +62,8 @@ in
|
|||||||
# ];
|
# ];
|
||||||
environment = {
|
environment = {
|
||||||
AUTHENTIK_HOST = "https://authentik.mjallen.dev";
|
AUTHENTIK_HOST = "https://authentik.mjallen.dev";
|
||||||
AUTHENTIK_TOKEN = "0XGkB2pXoOTqcCMAjucAtfamvlsIZCPmy1Zri54Ozjj3zzMCvcLwkQPrukfx";
|
AUTHENTIK_TOKEN = "0XGkB2pXoOTqcCMAjucAtfamvlsIZCPmy1Zri54Ozjj3zzMCvcLwkQPrukfx";
|
||||||
AUTHENTIK_INSECURE = "false"; # Set to true for self-signed certs
|
AUTHENTIK_INSECURE = "false"; # Set to true for self-signed certs
|
||||||
PUID = toString config.users.users.nix-apps.uid;
|
PUID = toString config.users.users.nix-apps.uid;
|
||||||
PGID = toString config.users.groups.jallen-nas.gid;
|
PGID = toString config.users.groups.jallen-nas.gid;
|
||||||
TZ = "America/Chicago";
|
TZ = "America/Chicago";
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ in
|
|||||||
extraOptions = [ "--device=/dev/dri" ];
|
extraOptions = [ "--device=/dev/dri" ];
|
||||||
volumes = [
|
volumes = [
|
||||||
"${cfg.configPath}:/config"
|
"${cfg.configPath}:/config"
|
||||||
"${cfg.moviesPath}:/library/movies"
|
"${cfg.moviesPath}:/libraries/movies"
|
||||||
"${cfg.tvPath}:/library/tv"
|
"${cfg.tvPath}:/libraries/tv"
|
||||||
"${cfg.transcodePath}:/transcode"
|
"${cfg.transcodePath}:/transcode"
|
||||||
];
|
];
|
||||||
ports = [
|
ports = [
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ buildHomeAssistantComponent rec {
|
|||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pkgs.${namespace}.python-nanokvm
|
pkgs.${namespace}.python-nanokvm
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace custom_components/nanokvm/manifest.json \
|
substituteInPlace custom_components/nanokvm/manifest.json \
|
||||||
--replace-fail '"nanokvm>=0.0.4"' '"nanokvm"'
|
--replace-fail '"nanokvm>=0.0.4"' '"nanokvm"'
|
||||||
|
|||||||
Reference in New Issue
Block a user