Add pace
This commit is contained in:
parent
06697553a4
commit
0bd1a5c684
2 changed files with 29 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
|||
./nix-index.nix
|
||||
./obs-studio
|
||||
./ots.nix
|
||||
./pace.nix
|
||||
./pass.nix
|
||||
./pomodoro.nix
|
||||
./python.nix
|
||||
|
|
|
|||
28
users/jalr/modules/pace.nix
Normal file
28
users/jalr/modules/pace.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ config, nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
|
||||
let
|
||||
tomlFormat = pkgs.formats.toml { };
|
||||
in
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
pace
|
||||
];
|
||||
|
||||
home.sessionVariables.PACE_HOME = "${config.xdg.configHome}/pace";
|
||||
|
||||
xdg.configFile."pace/pace.toml".source = tomlFormat.generate "pace.toml" {
|
||||
general = {
|
||||
path = "${config.home.homeDirectory}/.local/share/pace/activities/activities.pace.toml";
|
||||
storage-kind = "file";
|
||||
category-separator = "::";
|
||||
default-priority = "medium";
|
||||
most-recent-count = 9;
|
||||
default-time-zone = "${nixosConfig.time.timeZone}";
|
||||
};
|
||||
};
|
||||
|
||||
programs.fish.interactiveShellInit = lib.mkAfter ''
|
||||
${pkgs.pace}/bin/pace setup completions fish | source
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue