Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 5 additions & 12 deletions modules/lib/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@
github = "CarlosLoboxyz";
githubId = 86011416;
};
ckgxrg = {
name = "ckgxrg";
email = "ckgxrg@ckgxrg.io";
github = "ckgxrg-salt";
githubId = 165614491;
};
csanthiago = {
name = "csanthiago";
email = "git@csanthiago.dev";
Expand Down Expand Up @@ -499,6 +493,11 @@
github = "prescientmoon";
githubId = 39400800;
};
rachitvrma = {
name = "Rachit Kumar Verma";
github = "rachitvrma";
githubId = 155641117;
};
rasmus-kirk = {
name = "Rasmus Kirk";
email = "mail@rasmuskirk.com";
Expand Down Expand Up @@ -529,12 +528,6 @@
github = "Rosuavio";
githubId = 7164552;
};
rsahwe = {
name = "rsahwe";
email = "rsahwe@gmx.net";
github = "rsahwe";
githubId = 201613730;
};
rszamszur = {
name = "Radosław Szamszur";
email = "radoslawszamszur@gmail.com";
Expand Down
12 changes: 12 additions & 0 deletions modules/misc/news/2026/07/2026-07-28_20-12-31.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
time = "2026-07-28T14:42:31+00:00";
condition = true;
message = ''
A new module is available: 'programs.pomo'

Customizable TUI Pomodoro timer with ASCII art, progress bar,
desktop notifications, and productivity statistics.

See <https://github.com/Bahaaio/pomo> for more details.
'';
}
74 changes: 74 additions & 0 deletions modules/programs/pomo.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
config,
lib,
pkgs,
...
}:
let
inherit (lib)
mkIf
mkEnableOption
mkOption
mkPackageOption
;
cfg = config.programs.pomo;
yamlFormat = pkgs.formats.yaml { };
in
{
meta.maintainers = with lib.hm.maintainers; [
rachitvrma
];

options.programs.pomo = {
enable = mkEnableOption ''
pomo, a TUI Pomodoro timer with ASCII Art, progress bar,
desktop notifications, and productivity stats.
'';

package = mkPackageOption pkgs "pomo" { nullable = true; };

settings = mkOption {
inherit (yamlFormat) type;

default = { };
defaultText = lib.literalExpression "{ }";

example = lib.literalExpression ''
{
onSessionEnd = "ask";

asciiArt = {
enabled = true;
font = "mono12";
color = "#5A56E0";
};

work = {
duration = "25m";
title = "work session";
notification = {
enabled = true;
urgent = false;
title = "work finished 🎉";
message = "time to take a break";
};
};
}
'';

description = ''
Configuration written to
{file}`$XDG_CONFIG_HOME/pomo/pomo.yml`
See <https://github.com/Bahaaio/pomo/blob/main/pomo.yaml>
'';
};
};

config = mkIf cfg.enable {
home.packages = mkIf (cfg.package != null) [ cfg.package ];

xdg.configFile."pomo/pomo.yaml" = mkIf (cfg.settings != { }) {
source = yamlFormat.generate "hm_pomo.yaml" cfg.settings;
};
};
}
2 changes: 1 addition & 1 deletion modules/programs/rizin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let
in
{
meta.maintainers = [
lib.hm.maintainers.rsahwe
lib.maintainers.rsahwe
];

options = {
Expand Down
2 changes: 1 addition & 1 deletion modules/services/linux-wallpaperengine.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let
cfg = config.services.linux-wallpaperengine;
in
{
meta.maintainers = [ lib.hm.maintainers.ckgxrg ];
meta.maintainers = [ lib.maintainers.ckgxrg ];

options.services.linux-wallpaperengine = {
enable = lib.mkEnableOption "linux-wallpaperengine, an implementation of Wallpaper Engine functionality";
Expand Down
4 changes: 4 additions & 0 deletions tests/modules/programs/pomo/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
pomo-empty-settings = ./empty-settings.nix;
pomo-example-settings = ./example-settings.nix;
}
6 changes: 6 additions & 0 deletions tests/modules/programs/pomo/empty-settings.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
programs.pomo.enable = true;
nmt.script = ''
assertPathNotExists home-files/.config/pomo
'';
}
25 changes: 25 additions & 0 deletions tests/modules/programs/pomo/example-settings-expected.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
asciiArt:
color: '#5A56E0'
enabled: true
font: mono12
break:
duration: 5m
notification:
enabled: true
message: back to work!
title: break over 😴
urgent: false
title: break session
longBreak:
after: 4
duration: 20m
enabled: true
onSessionEnd: ask
work:
duration: 25m
notification:
enabled: true
message: time to take a break
title: work finished 🎉
urgent: false
title: work session
45 changes: 45 additions & 0 deletions tests/modules/programs/pomo/example-settings.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ config, ... }: {
programs.pomo = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings = {
onSessionEnd = "ask";
asciiArt = {
enabled = true;
font = "mono12";
color = "#5A56E0";
};
work = {
duration = "25m";
title = "work session";
notification = {
enabled = true;
urgent = false;
title = "work finished 🎉";
message = "time to take a break";
};
};
break = {
duration = "5m";
title = "break session";
notification = {
enabled = true;
urgent = false;
title = "break over 😴";
message = "back to work!";
};
};
longBreak = {
enabled = true;
after = 4;
duration = "20m";
};
};
};
nmt.script = ''
local configFile=home-files/.config/pomo/pomo.yaml

assertFileExists $configFile
assertFileContent $configFile ${./example-settings-expected.yaml}
'';
}
Loading