fix(#1): merge 'follows' directives with mkDep
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-08-02 23:28:04 -04:00
parent 24aa4b9842
commit 2861935ddd
4 changed files with 43 additions and 68 deletions

View file

@ -1,4 +1,8 @@
deviceName: {config, self, ...}: let deviceName: {
config,
self,
...
}: let
inherit (config.vars) mainUser hostName; inherit (config.vars) mainUser hostName;
clusterIP = config.services.pcsd.virtualIps.caddy-vip.ip; clusterIP = config.services.pcsd.virtualIps.caddy-vip.ip;

View file

@ -619,27 +619,6 @@
"type": "github" "type": "github"
} }
}, },
"home-manager_2": {
"inputs": {
"nixpkgs": [
"nix-on-droid",
"nixpkgs"
]
},
"locked": {
"lastModified": 1709445365,
"narHash": "sha256-DVv6nd9FQBbMWbOmhq0KVqmlc3y3FMSYl49UXmMcO+0=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "4de84265d7ec7634a69ba75028696d74de9a44a7",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"hyprcursor": { "hyprcursor": {
"inputs": { "inputs": {
"hyprlang": [ "hyprlang": [
@ -1254,7 +1233,9 @@
}, },
"nix-on-droid": { "nix-on-droid": {
"inputs": { "inputs": {
"home-manager": "home-manager_2", "home-manager": [
"home-manager"
],
"nix-formatter-pack": "nix-formatter-pack", "nix-formatter-pack": "nix-formatter-pack",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
@ -1437,22 +1418,6 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-stable_3": {
"locked": {
"lastModified": 1721524707,
"narHash": "sha256-5NctRsoE54N86nWd0psae70YSLfrOek3Kv1e8KoXe/0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "556533a23879fc7e5f98dd2e0b31a6911a213171",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "release-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-wayland": { "nixpkgs-wayland": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_2",
@ -1769,7 +1734,7 @@
"protonhax-src": "protonhax-src", "protonhax-src": "protonhax-src",
"secrets": "secrets", "secrets": "secrets",
"sioyek-theme-src": "sioyek-theme-src", "sioyek-theme-src": "sioyek-theme-src",
"sops-nix": "sops-nix_2", "sops-nix": "sops-nix",
"subsync": "subsync", "subsync": "subsync",
"trash-d-src": "trash-d-src", "trash-d-src": "trash-d-src",
"ts-for-gir-src": "ts-for-gir-src", "ts-for-gir-src": "ts-for-gir-src",
@ -1819,7 +1784,9 @@
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"sops-nix": "sops-nix" "sops-nix": [
"sops-nix"
]
}, },
"locked": { "locked": {
"lastModified": 1722222376, "lastModified": 1722222376,
@ -1854,7 +1821,6 @@
"sops-nix": { "sops-nix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"secrets",
"nixpkgs" "nixpkgs"
], ],
"nixpkgs-stable": "nixpkgs-stable_2" "nixpkgs-stable": "nixpkgs-stable_2"
@ -1873,27 +1839,6 @@
"type": "github" "type": "github"
} }
}, },
"sops-nix_2": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable_3"
},
"locked": {
"lastModified": 1722114803,
"narHash": "sha256-s6YhI8UHwQvO4cIFLwl1wZ1eS5Cuuw7ld2VzUchdFP0=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "eb34eb588132d653e4c4925d862f1e5a227cc2ab",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "sops-nix",
"type": "github"
}
},
"sphinxbase-src": { "sphinxbase-src": {
"flake": false, "flake": false,
"locked": { "locked": {

View file

@ -213,7 +213,10 @@
type = "github"; type = "github";
}; };
nix-on-droid = { nix-on-droid = {
inputs.nixpkgs.follows = "nixpkgs"; inputs = {
home-manager.follows = "home-manager";
nixpkgs.follows = "nixpkgs";
};
owner = "nix-community"; owner = "nix-community";
repo = "nix-on-droid"; repo = "nix-on-droid";
type = "github"; type = "github";
@ -285,7 +288,10 @@
type = "github"; type = "github";
}; };
secrets = { secrets = {
inputs.nixpkgs.follows = "nixpkgs"; inputs = {
nixpkgs.follows = "nixpkgs";
sops-nix.follows = "sops-nix";
};
type = "git"; type = "git";
url = "ssh://git@git.nelim.org/matt1432/nixos-secrets"; url = "ssh://git@git.nelim.org/matt1432/nixos-secrets";
}; };

View file

@ -3,9 +3,29 @@ let
# Misc functions # Misc functions
mkInput = {type ? "github", ...} @ info: info // {inherit type;}; mkInput = {type ? "github", ...} @ info: info // {inherit type;};
mkDep = info: (mkInput info) // {inputs.nixpkgs.follows = "nixpkgs";}; mkDep = info:
mkHyprDep = info: (mkInput info) // {inputs.hyprland.follows = "hyprland";}; mkInput (info
mkSrc = info: (mkInput info) // {flake = false;}; // {
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 # Inputs
nixTools = { nixTools = {