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"
|
"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": {
|
"nvim-theme-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -1701,6 +1721,7 @@
|
||||||
"nixd": "nixd",
|
"nixd": "nixd",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||||
|
"nurl": "nurl",
|
||||||
"nvim-theme-src": "nvim-theme-src",
|
"nvim-theme-src": "nvim-theme-src",
|
||||||
"pam-fprint-grosshack-src": "pam-fprint-grosshack-src",
|
"pam-fprint-grosshack-src": "pam-fprint-grosshack-src",
|
||||||
"pcsd": "pcsd",
|
"pcsd": "pcsd",
|
||||||
|
|
|
@ -343,6 +343,12 @@
|
||||||
repo = "nixpkgs-wayland";
|
repo = "nixpkgs-wayland";
|
||||||
type = "github";
|
type = "github";
|
||||||
};
|
};
|
||||||
|
nurl = {
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
owner = "nix-community";
|
||||||
|
repo = "nurl";
|
||||||
|
type = "github";
|
||||||
|
};
|
||||||
nvim-theme-src = {
|
nvim-theme-src = {
|
||||||
flake = false;
|
flake = false;
|
||||||
owner = "Mofiqul";
|
owner = "Mofiqul";
|
||||||
|
|
|
@ -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…
Add table
Reference in a new issue