All checks were successful
/ check (push) Successful in 1m1s
Based on ones in https://github.com/rwxrob/dot.
32 lines
592 B
Nix
32 lines
592 B
Nix
{ withSystem, ... }:
|
|
|
|
let
|
|
name = "now";
|
|
in
|
|
{
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
packages.${name} = pkgs.writeShellApplication {
|
|
inherit name;
|
|
|
|
runtimeInputs = with pkgs; [ coreutils ];
|
|
|
|
text = ''
|
|
# Based on https://github.com/rwxrob/dot/blob/main/scripts/now.
|
|
|
|
out=$(date "+%A, %B %e, %Y, %R %Z")
|
|
|
|
echo "''${out// / }"
|
|
'';
|
|
};
|
|
};
|
|
|
|
flake.modules.homeManager.base =
|
|
{ pkgs, ... }:
|
|
{
|
|
home.packages = [
|
|
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
|
|
];
|
|
};
|
|
}
|