Some checks are pending
/ check (push) Waiting to run
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
37 lines
692 B
Nix
37 lines
692 B
Nix
{ inputs, withSystem, ... }:
|
|
|
|
let
|
|
name = "zet";
|
|
in
|
|
{
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
packages.${name} = pkgs.writeShellApplication {
|
|
inherit name;
|
|
|
|
bashOptions = [ "pipefail" ];
|
|
|
|
runtimeInputs = with pkgs; [
|
|
bashInteractive
|
|
coreutils
|
|
fzf
|
|
git
|
|
];
|
|
|
|
text = builtins.readFile "${inputs.zet}/${name}";
|
|
};
|
|
};
|
|
|
|
flake.modules.homeManager.base =
|
|
{ config, pkgs, ... }:
|
|
{
|
|
home.packages = [
|
|
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
|
|
];
|
|
|
|
home.sessionVariables = {
|
|
ZET_DIR = "${config.xdg.userDirs.documents}/zet";
|
|
};
|
|
};
|
|
}
|