2025-09-21 21:56:25 +01:00
|
|
|
{ withSystem, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
name = "todo";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
perSystem =
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
packages.${name} = pkgs.writeShellApplication {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
runtimeInputs = with pkgs; [ coreutils ];
|
|
|
|
|
2025-09-21 22:31:38 +01:00
|
|
|
text = ''"$EDITOR" +3 "$TODO_FILE"'';
|
2025-09-21 21:56:25 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
flake.modules.homeManager.base =
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
home.packages = [
|
|
|
|
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
|
|
|
|
];
|
|
|
|
|
2025-09-21 22:30:56 +01:00
|
|
|
home.sessionVariables.TODO_FILE = "${config.home.sessionVariables.WIKI_DIRECTORY}/todo.adoc";
|
2025-09-21 21:56:25 +01:00
|
|
|
};
|
|
|
|
}
|