Add today
and today2
scripts to print the
All checks were successful
/ check (push) Successful in 54s
All checks were successful
/ check (push) Successful in 54s
...current date Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
71b2652459
commit
c1845fe347
2 changed files with 52 additions and 0 deletions
26
modules/scripts/today.nix
Normal file
26
modules/scripts/today.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ withSystem, ... }:
|
||||
|
||||
let
|
||||
name = "today";
|
||||
in
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
packages.${name} = pkgs.writeShellApplication {
|
||||
inherit name;
|
||||
|
||||
runtimeInputs = with pkgs; [ coreutils ];
|
||||
|
||||
text = ''date "+%x"'';
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.homeManager.base =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
|
||||
];
|
||||
};
|
||||
}
|
26
modules/scripts/today2.nix
Normal file
26
modules/scripts/today2.nix
Normal 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}))
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue