Fixed typos
This commit is contained in:
parent
11a3d47d34
commit
59f81d7270
16
module.nix
16
module.nix
|
@ -1,18 +1,18 @@
|
|||
{ lib, config, pkgs, mesa-tts-pkgs, ... }:
|
||||
{ lib, config, pkgs, mensa-tts-pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
# Shorter name to access final settings a
|
||||
# user of hello.nix module HAS ACTUALLY SET.
|
||||
# cfg is a typical convention.
|
||||
cfg = config.services.mesa-tts;
|
||||
cfg = config.services.mensa-tts;
|
||||
in
|
||||
{
|
||||
|
||||
options.services.mesa-tts = {
|
||||
options.services.mensa-tts = {
|
||||
enable = mkEnableOption "mensa-tts service";
|
||||
|
||||
package = mkOption {
|
||||
default = mesa-tts-pkgs.x86_64-linux.default;
|
||||
default = mensa-tts-pkgs.x86_64-linux.default;
|
||||
type = types.package;
|
||||
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} - -"
|
||||
];
|
||||
|
||||
systemd.services.mesa-tts = {
|
||||
description = "mesa-tts service";
|
||||
systemd.services.mensa-tts = {
|
||||
description = "mensa-tts service";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = cfg.user;
|
||||
|
@ -106,11 +106,11 @@ in
|
|||
};
|
||||
|
||||
|
||||
systemd.timers.mesa-tts = {
|
||||
systemd.timers.mensa-tts = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = cfg.time;
|
||||
Unit = "mesa-tts.service";
|
||||
Unit = "mensa-tts.service";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue