2024-01-12 01:01:22 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let workflowDir = "${config.home.homeDirectory}/productivity/smos";
|
|
|
|
in
|
|
|
|
{
|
2023-09-05 19:59:37 +02:00
|
|
|
programs.smos = {
|
2024-01-12 01:01:22 +01:00
|
|
|
inherit workflowDir;
|
|
|
|
|
2023-09-05 19:59:37 +02:00
|
|
|
enable = true;
|
2023-12-12 14:32:06 +01:00
|
|
|
notify.enable = true;
|
2023-09-05 19:59:37 +02:00
|
|
|
|
|
|
|
github = {
|
|
|
|
enable = true;
|
|
|
|
oauth-token-file = config.homeage.file.smos.path;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
satellite.persistence.at.data.apps.smos.directories = [
|
|
|
|
config.programs.smos.workflowDir
|
|
|
|
];
|
|
|
|
|
|
|
|
homeage.file.smos = {
|
|
|
|
source = ./smos_github_oauth.age;
|
|
|
|
path = "${config.xdg.dataHome}/smos/.github_token";
|
|
|
|
};
|
2024-01-12 01:01:22 +01:00
|
|
|
|
|
|
|
home.packages =
|
|
|
|
# Start smos with a custom class so our WM can move it to the correct workspace
|
|
|
|
let smosgui = pkgs.writeShellScriptBin "smosgui" ''
|
|
|
|
wezterm start --class "org.wezfurlong.wezterm.smos" --cwd ${workflowDir} smos
|
|
|
|
'';
|
|
|
|
in
|
|
|
|
[ smosgui ];
|
|
|
|
|
|
|
|
xdg.desktopEntries.smosgui = {
|
|
|
|
name = "Smos GUI";
|
|
|
|
type = "Application";
|
|
|
|
exec = "smosgui";
|
|
|
|
terminal = false;
|
|
|
|
};
|
2023-09-05 19:59:37 +02:00
|
|
|
}
|