Add skills script
All checks were successful
/ check (push) Successful in 1m21s

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-10-02 07:50:01 +01:00
parent 473cc2757c
commit 6fb970ba7b

View file

@ -0,0 +1,28 @@
{ withSystem, ... }:
let
name = "skills";
in
{
perSystem =
{ pkgs, ... }:
{
packages.${name} = pkgs.writeShellApplication {
inherit name;
runtimeInputs = with pkgs; [ coreutils ];
text = ''"$EDITOR" +2 "$SKILLS_FILE"'';
};
};
flake.modules.homeManager.base =
{ config, pkgs, ... }:
{
home.packages = [
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
];
home.sessionVariables.SKILLS_FILE = "${config.home.sessionVariables.NOTES_DIRECTORY}/2-areas/skills.csv";
};
}