nix-config/modules/scripts/ppp.nix
Oliver Davies 4b27415d2a
All checks were successful
/ check (push) Successful in 50s
Add ppp script
2025-09-03 09:52:48 +01:00

26 lines
484 B
Nix

{ inputs, withSystem, ... }:
let
name = "ppp";
in
{
perSystem =
{ pkgs, ... }:
{
packages.ppp = pkgs.writeShellApplication {
inherit name;
runtimeInputs = with pkgs; [ coreutils ];
text = builtins.readFile "${inputs.rwxrob-dot}/scripts/${name}";
};
};
flake.modules.homeManager.base =
{ pkgs, ... }:
{
home.packages = [
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
];
};
}