All checks were successful
/ check (push) Successful in 1m1s
Based on ones in https://github.com/rwxrob/dot.
35 lines
679 B
Nix
35 lines
679 B
Nix
{ lib, withSystem, ... }:
|
|
|
|
let
|
|
name = "hnow";
|
|
in
|
|
{
|
|
perSystem =
|
|
psArgs@{ pkgs, ... }:
|
|
let
|
|
now = withSystem pkgs.system (psArgs: psArgs.config.packages.now);
|
|
in
|
|
{
|
|
packages.${name} = pkgs.writeShellApplication {
|
|
inherit name;
|
|
|
|
runtimeInputs = [
|
|
psArgs.config.packages.now
|
|
];
|
|
|
|
text = ''
|
|
# Based on https://github.com/rwxrob/dot/blob/main/scripts/hnow.
|
|
|
|
echo "== $(${lib.getExe now})"
|
|
'';
|
|
};
|
|
};
|
|
|
|
flake.modules.homeManager.base =
|
|
{ pkgs, ... }:
|
|
{
|
|
home.packages = [
|
|
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
|
|
];
|
|
};
|
|
}
|