Add today and today2 scripts to print the
All checks were successful
/ check (push) Successful in 54s

...current date

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-12 08:50:28 +01:00
parent 71b2652459
commit c1845fe347
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ withSystem, ... }:
let
name = "today2";
in
{
perSystem =
{ pkgs, ... }:
{
packages.${name} = pkgs.writeShellApplication {
inherit name;
runtimeInputs = with pkgs; [ coreutils ];
text = ''date "+%F"'';
};
};
flake.modules.homeManager.base =
{ pkgs, ... }:
{
home.packages = [
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
];
};
}