Fixed typos

This commit is contained in:
Sebastian 2024-12-18 18:16:35 +01:00
parent 11a3d47d34
commit 59f81d7270

View file

@ -1,18 +1,18 @@
{ lib, config, pkgs, mesa-tts-pkgs, ... }: { lib, config, pkgs, mensa-tts-pkgs, ... }:
with lib; with lib;
let let
# Shorter name to access final settings a # Shorter name to access final settings a
# user of hello.nix module HAS ACTUALLY SET. # user of hello.nix module HAS ACTUALLY SET.
# cfg is a typical convention. # cfg is a typical convention.
cfg = config.services.mesa-tts; cfg = config.services.mensa-tts;
in in
{ {
options.services.mesa-tts = { options.services.mensa-tts = {
enable = mkEnableOption "mensa-tts service"; enable = mkEnableOption "mensa-tts service";
package = mkOption { package = mkOption {
default = mesa-tts-pkgs.x86_64-linux.default; default = mensa-tts-pkgs.x86_64-linux.default;
type = types.package; type = types.package;
description = "mensa-tts packages to use. Needed to fix crosscompilation issues."; description = "mensa-tts packages to use. Needed to fix crosscompilation issues.";
}; };
@ -87,8 +87,8 @@ in
"d '${cfg.cache-dir}' 0750 ${cfg.user} ${cfg.group} - -" "d '${cfg.cache-dir}' 0750 ${cfg.user} ${cfg.group} - -"
]; ];
systemd.services.mesa-tts = { systemd.services.mensa-tts = {
description = "mesa-tts service"; description = "mensa-tts service";
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
User = cfg.user; User = cfg.user;
@ -106,11 +106,11 @@ in
}; };
systemd.timers.mesa-tts = { systemd.timers.mensa-tts = {
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
timerConfig = { timerConfig = {
OnCalendar = cfg.time; OnCalendar = cfg.time;
Unit = "mesa-tts.service"; Unit = "mensa-tts.service";
}; };
}; };
}; };