deadnix + statix after best-practices

This commit is contained in:
2024-11-09 16:40:26 -06:00
parent a9ef403cea
commit 2c377b9664
6 changed files with 5 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
{ {
config, config,
lib,
pkgs, pkgs,
inputs, inputs,
... ...

View File

@@ -1,6 +1,6 @@
{ config, ... }: { config, ... }:
let let
hostName = config.networking.hostName; inherit (config.networking) hostName;
in in
{ {
sops.secrets = sops.secrets =

View File

@@ -34,7 +34,7 @@
in in
packages packages
++ [ ++ [
(pkgs.python3.withPackages (ps: pythonPackages)) (pkgs.python3.withPackages (_ps: pythonPackages))
]; ];
}; };
} }

View File

@@ -2,7 +2,7 @@
let let
cfg = config.my.servers.flame; cfg = config.my.servers.flame;
cfgS = config.my.servers.flameSecret; cfgS = config.my.servers.flameSecret;
enable = (cfg.enable || cfgS.enable); enable = cfg.enable || cfgS.enable;
setup = import ./setup.nix { inherit lib config; }; setup = import ./setup.nix { inherit lib config; };
in in
{ {

View File

@@ -14,7 +14,7 @@ in
services = { services = {
prowlarr.enable = cfg.enable; prowlarr.enable = cfg.enable;
flaresolverr = { flaresolverr = {
enable = cfg.enable; inherit (cfg) enable;
openFirewall = true; openFirewall = true;
}; };
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy ( nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (

View File

@@ -24,7 +24,7 @@
}; };
}; };
nvidia = { nvidia = {
open = (config.networking.hostName == "workstation"); open = config.networking.hostName == "workstation";
package = config.boot.kernelPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true; modesetting.enable = true;
powerManagement.enable = true; powerManagement.enable = true;