fix(#1): merge 'follows' directives with mkDep
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
24aa4b9842
commit
2861935ddd
4 changed files with 28 additions and 4 deletions
|
@ -1,4 +1,8 @@
|
|||
deviceName: {config, self, ...}: let
|
||||
deviceName: {
|
||||
config,
|
||||
self,
|
||||
...
|
||||
}: let
|
||||
inherit (config.vars) mainUser hostName;
|
||||
|
||||
clusterIP = config.services.pcsd.virtualIps.caddy-vip.ip;
|
||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -3,9 +3,29 @@ let
|
|||
|
||||
# Misc functions
|
||||
mkInput = {type ? "github", ...} @ info: info // {inherit type;};
|
||||
mkDep = info: (mkInput info) // {inputs.nixpkgs.follows = "nixpkgs";};
|
||||
mkHyprDep = info: (mkInput info) // {inputs.hyprland.follows = "hyprland";};
|
||||
mkSrc = info: (mkInput info) // {flake = false;};
|
||||
mkDep = info:
|
||||
mkInput (info
|
||||
// {
|
||||
inputs =
|
||||
{nixpkgs.follows = "nixpkgs";}
|
||||
// (
|
||||
if builtins.hasAttr "inputs" info
|
||||
then info.inputs
|
||||
else {}
|
||||
);
|
||||
});
|
||||
mkHyprDep = info:
|
||||
mkInput (info
|
||||
// {
|
||||
inputs =
|
||||
{hyprland.follows = "hyprland";}
|
||||
// (
|
||||
if builtins.hasAttr "inputs" info
|
||||
then info.inputs
|
||||
else {}
|
||||
);
|
||||
});
|
||||
mkSrc = info: mkInput (info // {flake = false;});
|
||||
|
||||
# Inputs
|
||||
nixTools = {
|
||||
|
|
Loading…
Reference in a new issue