nix-config/modules/scripts/todo.nix
Oliver Davies 8159826f0a
Some checks are pending
/ check (push) Waiting to run
Open the file with the cursor on the third line
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
2025-09-21 22:31:38 +01:00

28 lines
563 B
Nix

{ withSystem, ... }:
let
name = "todo";
in
{
perSystem =
{ pkgs, ... }:
{
packages.${name} = pkgs.writeShellApplication {
inherit name;
runtimeInputs = with pkgs; [ coreutils ];
text = ''"$EDITOR" +3 "$TODO_FILE"'';
};
};
flake.modules.homeManager.base =
{ config, pkgs, ... }:
{
home.packages = [
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
];
home.sessionVariables.TODO_FILE = "${config.home.sessionVariables.WIKI_DIRECTORY}/todo.adoc";
};
}