mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
This commit is contained in:
parent
5df48c4255
commit
cba2f9ce95
1051 changed files with 37028 additions and 26594 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
|
|
@ -6,14 +11,17 @@ let
|
|||
|
||||
cfg = config.services.taskwarrior-sync;
|
||||
|
||||
in {
|
||||
meta.maintainers = with maintainers; [ euxane minijackson ];
|
||||
in
|
||||
{
|
||||
meta.maintainers = with maintainers; [
|
||||
euxane
|
||||
minijackson
|
||||
];
|
||||
|
||||
options.services.taskwarrior-sync = {
|
||||
enable = mkEnableOption "Taskwarrior periodic sync";
|
||||
|
||||
package =
|
||||
mkPackageOption pkgs "taskwarrior" { example = "pkgs.taskwarrior3"; };
|
||||
package = mkPackageOption pkgs "taskwarrior" { example = "pkgs.taskwarrior3"; };
|
||||
|
||||
frequency = mkOption {
|
||||
type = types.str;
|
||||
|
|
@ -30,12 +38,13 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [
|
||||
(lib.hm.assertions.assertPlatform "services.taskwarrior-sync" pkgs
|
||||
lib.platforms.linux)
|
||||
(lib.hm.assertions.assertPlatform "services.taskwarrior-sync" pkgs lib.platforms.linux)
|
||||
];
|
||||
|
||||
systemd.user.services.taskwarrior-sync = {
|
||||
Unit = { Description = "Taskwarrior sync"; };
|
||||
Unit = {
|
||||
Description = "Taskwarrior sync";
|
||||
};
|
||||
Service = {
|
||||
CPUSchedulingPolicy = "idle";
|
||||
IOSchedulingClass = "idle";
|
||||
|
|
@ -44,12 +53,16 @@ in {
|
|||
};
|
||||
|
||||
systemd.user.timers.taskwarrior-sync = {
|
||||
Unit = { Description = "Taskwarrior periodic sync"; };
|
||||
Unit = {
|
||||
Description = "Taskwarrior periodic sync";
|
||||
};
|
||||
Timer = {
|
||||
Unit = "taskwarrior-sync.service";
|
||||
OnCalendar = cfg.frequency;
|
||||
};
|
||||
Install = { WantedBy = [ "timers.target" ]; };
|
||||
Install = {
|
||||
WantedBy = [ "timers.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue