nix-config/modules/scripts/today2.nix
Oliver Davies c1845fe347
All checks were successful
/ check (push) Successful in 54s
Add today and today2 scripts to print the
...current date

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
2025-09-12 08:50:28 +01:00

26 lines
442 B
Nix

{ 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}))
];
};
}