cleanup: statix

This commit is contained in:
2024-07-04 14:38:37 -06:00
parent 6055c9e63a
commit f177fde0ef
10 changed files with 49 additions and 65 deletions

View File

@@ -37,7 +37,7 @@
lib.nameValuePair "${script.name}"
(lib.mkIf (script.enable && script.service) {
restartIfChanged = true;
description = script.description;
inherit (script) description;
wantedBy = [ "default.target" ];
path = [ pkgs.nix script.package ];
serviceConfig = {
@@ -51,7 +51,7 @@
lib.nameValuePair "${script.name}"
(lib.mkIf (script.enable && script.service) {
enable = true;
description = script.description;
inherit (script) description;
wantedBy = [ "timers.target" ];
timerConfig = { OnCalendar = script.timer; };
})) config.my.scripts;

View File

@@ -1,6 +1,6 @@
{ lib, config, pkgs, serviceBase, ... }:
let
localhost = config.my.localhost;
inherit (config.my) localhost;
port = 8096;
in {
options.my.servers.jellyfin = {

View File

@@ -1,6 +1,6 @@
{ lib, config, pkgs, ... }:
let
localhost = config.my.localhost;
inherit (config.my) localhost;
collaboraPort = 9980;
url = "cloud.${config.my.domain}";
collaboraProxy = "http://${localhost}:${toString collaboraPort}";
@@ -36,7 +36,7 @@ in {
users.users.nextcloud = {
isSystemUser = true;
extraGroups = [ "render" ];
packages = (with pkgs; [
packages = with pkgs; [
mediainfo
nodejs
(python3.withPackages (ps: with ps; [ tensorflow ]))
@@ -49,7 +49,7 @@ in {
hash = "sha256-TLJSJEXMPj870TkExq6uraX8Wl4kmNerrSlX3LQsr/4=";
};
})
]);
];
};
programs.msmtp = {
enable = true;

View File

@@ -35,7 +35,7 @@ in {
ensureDatabases = dbNames;
package = pkgs.postgresql_16;
ensureUsers = map (name: {
name = name;
inherit name;
ensureDBOwnership = true;
}) dbNames;
authentication = pkgs.lib.mkOverride 10 ''