diff --git a/modules/scripts/skills.nix b/modules/scripts/skills.nix new file mode 100644 index 00000000..b1af10a0 --- /dev/null +++ b/modules/scripts/skills.nix @@ -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"; + }; +}