This commit is contained in:
parent
ce9bb61f7f
commit
ea06868e39
4 changed files with 19 additions and 2 deletions
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -24,6 +24,11 @@ let
|
||||||
repo = "nh";
|
repo = "nh";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nurl = mkDep {
|
||||||
|
owner = "nix-community";
|
||||||
|
repo = "nurl";
|
||||||
|
};
|
||||||
|
|
||||||
# These are here to make sure all 'systems' are the same
|
# These are here to make sure all 'systems' are the same
|
||||||
flake-utils = mkInput {
|
flake-utils = mkInput {
|
||||||
owner = "numtide";
|
owner = "numtide";
|
||||||
|
|
|
@ -4,7 +4,7 @@ self: {
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) attrValues mkIf;
|
inherit (lib) attrValues makeBinPath mkIf optional;
|
||||||
|
|
||||||
cfg = config.roles.base;
|
cfg = config.roles.base;
|
||||||
in {
|
in {
|
||||||
|
@ -30,7 +30,19 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages =
|
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
|
inherit
|
||||||
(self.packages.${pkgs.system})
|
(self.packages.${pkgs.system})
|
||||||
pokemon-colorscripts
|
pokemon-colorscripts
|
||||||
|
|
Loading…
Reference in a new issue