This commit is contained in:
parent
ce9bb61f7f
commit
ea06868e39
4 changed files with 46 additions and 2 deletions
21
flake.lock
generated
21
flake.lock
generated
|
@ -1505,6 +1505,26 @@
|
|||
"type": "gitlab"
|
||||
}
|
||||
},
|
||||
"nurl": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1726505596,
|
||||
"narHash": "sha256-WAFqmlsShuQngk6LMFlgz7Oyc41TAQeTa/49phhRizY=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nurl",
|
||||
"rev": "3a3ba7f0d14d92e1266395d826c6e229797d0044",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "nurl",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nvim-theme-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -1701,6 +1721,7 @@
|
|||
"nixd": "nixd",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||
"nurl": "nurl",
|
||||
"nvim-theme-src": "nvim-theme-src",
|
||||
"pam-fprint-grosshack-src": "pam-fprint-grosshack-src",
|
||||
"pcsd": "pcsd",
|
||||
|
|
|
@ -343,6 +343,12 @@
|
|||
repo = "nixpkgs-wayland";
|
||||
type = "github";
|
||||
};
|
||||
nurl = {
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
owner = "nix-community";
|
||||
repo = "nurl";
|
||||
type = "github";
|
||||
};
|
||||
nvim-theme-src = {
|
||||
flake = false;
|
||||
owner = "Mofiqul";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue