feat(base): add nurl
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-12-15 23:10:06 -05:00
parent ce9bb61f7f
commit ea06868e39
4 changed files with 19 additions and 2 deletions

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -24,6 +24,11 @@ let
repo = "nh";
};
nurl = mkDep {
owner = "nix-community";
repo = "nurl";
};
# These are here to make sure all 'systems' are the same
flake-utils = mkInput {
owner = "numtide";

View file

@ -4,7 +4,7 @@ self: {
pkgs,
...
}: let
inherit (lib) attrValues mkIf;
inherit (lib) attrValues makeBinPath mkIf optional;
cfg = config.roles.base;
in {
@ -30,7 +30,19 @@ in {
];
environment.systemPackages =
(attrValues {
(optional (cfg.user != "nixos") (self.inputs.nurl.packages.${pkgs.system}.default.overrideAttrs {
postInstall = ''
wrapProgram $out/bin/nurl \
--prefix PATH : ${makeBinPath [
(config.home-manager.users.${cfg.user}.programs.git.package or pkgs.gitMinimal)
(config.nix.package or pkgs.nix)
pkgs.mercurial
]}
installManPage artifacts/nurl.1
installShellCompletion artifacts/nurl.{bash,fish} --zsh artifacts/_nurl
'';
}))
++ (attrValues {
inherit
(self.packages.${pkgs.system})
pokemon-colorscripts