deadnix + statix after best-practices

This commit is contained in:
Danilo Reyes 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,
lib,
pkgs,
inputs,
...

View File

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

View File

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

View File

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

View File

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

View File

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