absolutely wacky flake.nix

This commit is contained in:
Daylin Morgan 2024-02-21 15:47:58 -06:00
parent 2e0ec36c0a
commit 35b7106b11
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
3 changed files with 44 additions and 45 deletions

View file

@ -15,31 +15,10 @@
"type": "github" "type": "github"
} }
}, },
"flake-inputs": {
"inputs": {
"hyprland": "hyprland",
"hyprland-contrib": "hyprland-contrib",
"nix-eval-jobs": "nix-eval-jobs",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs",
"nixpkgs-wayland": "nixpkgs-wayland",
"pinix": "pinix"
},
"locked": {
"lastModified": 1,
"narHash": "sha256-pNq475t8Hbj+GhSfheiUYA7hVRMjFmTa3B8iAaLtE74=",
"path": "./inputs",
"type": "path"
},
"original": {
"path": "./inputs",
"type": "path"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
"flake-inputs", "inputs",
"nix-eval-jobs", "nix-eval-jobs",
"nixpkgs" "nixpkgs"
] ]
@ -81,7 +60,7 @@
"hyprland-protocols": "hyprland-protocols", "hyprland-protocols": "hyprland-protocols",
"hyprlang": "hyprlang", "hyprlang": "hyprlang",
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"nixpkgs" "nixpkgs"
], ],
"systems": "systems", "systems": "systems",
@ -106,7 +85,7 @@
"hyprland-contrib": { "hyprland-contrib": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"nixpkgs" "nixpkgs"
] ]
}, },
@ -127,12 +106,12 @@
"hyprland-protocols": { "hyprland-protocols": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
], ],
"systems": [ "systems": [
"flake-inputs", "inputs",
"hyprland", "hyprland",
"systems" "systems"
] ]
@ -154,7 +133,7 @@
"hyprlang": { "hyprlang": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
] ]
@ -176,7 +155,7 @@
"hyprlang_2": { "hyprlang_2": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"hyprland", "hyprland",
"xdph", "xdph",
"nixpkgs" "nixpkgs"
@ -196,6 +175,27 @@
"type": "github" "type": "github"
} }
}, },
"inputs": {
"inputs": {
"hyprland": "hyprland",
"hyprland-contrib": "hyprland-contrib",
"nix-eval-jobs": "nix-eval-jobs",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs",
"nixpkgs-wayland": "nixpkgs-wayland",
"pinix": "pinix"
},
"locked": {
"lastModified": 1,
"narHash": "sha256-pNq475t8Hbj+GhSfheiUYA7hVRMjFmTa3B8iAaLtE74=",
"path": "./inputs",
"type": "path"
},
"original": {
"path": "./inputs",
"type": "path"
}
},
"lib-aggregate": { "lib-aggregate": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
@ -220,7 +220,7 @@
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"nix-github-actions": "nix-github-actions", "nix-github-actions": "nix-github-actions",
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"nixpkgs" "nixpkgs"
], ],
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
@ -242,7 +242,7 @@
"nix-github-actions": { "nix-github-actions": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"nix-eval-jobs", "nix-eval-jobs",
"nixpkgs" "nixpkgs"
] ]
@ -264,7 +264,7 @@
"nix-index-database": { "nix-index-database": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"nixpkgs" "nixpkgs"
] ]
}, },
@ -318,11 +318,11 @@
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
"lib-aggregate": "lib-aggregate", "lib-aggregate": "lib-aggregate",
"nix-eval-jobs": [ "nix-eval-jobs": [
"flake-inputs", "inputs",
"nix-eval-jobs" "nix-eval-jobs"
], ],
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"nixpkgs" "nixpkgs"
] ]
}, },
@ -343,7 +343,7 @@
"pinix": { "pinix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"nixpkgs" "nixpkgs"
] ]
}, },
@ -363,7 +363,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-inputs": "flake-inputs" "inputs": "inputs"
} }
}, },
"systems": { "systems": {
@ -399,7 +399,7 @@
"treefmt-nix": { "treefmt-nix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"nix-eval-jobs", "nix-eval-jobs",
"nixpkgs" "nixpkgs"
] ]
@ -440,18 +440,18 @@
"xdph": { "xdph": {
"inputs": { "inputs": {
"hyprland-protocols": [ "hyprland-protocols": [
"flake-inputs", "inputs",
"hyprland", "hyprland",
"hyprland-protocols" "hyprland-protocols"
], ],
"hyprlang": "hyprlang_2", "hyprlang": "hyprlang_2",
"nixpkgs": [ "nixpkgs": [
"flake-inputs", "inputs",
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
], ],
"systems": [ "systems": [
"flake-inputs", "inputs",
"hyprland", "hyprland",
"systems" "systems"
] ]

View file

@ -1,16 +1,14 @@
{ {
description = "nix begat oizys"; description = "nix begat oizys";
# inputs.flake-inputs.url = "github:daylinmorgan/oizys?dir=inputs"; # inputs.flake-inputs.url = "github:daylinmorgan/oizys?dir=inputs";
inputs.flake-inputs.url = "path:./inputs"; inputs.inputs.url = "path:./inputs";
outputs = { outputs = {
inputs,
self, self,
flake-inputs,
}: }:
(import ./lib { (import ./lib {
inherit (inputs) inputs;
inherit self; inherit self;
inputs = flake-inputs.inputs;
}) })
.oizysFlake {}; .oizysFlake {};
} }

View file

@ -1,8 +1,9 @@
{ {
inputs, inputs,
self, self,
...
}: let }: let
# inputs = flake-inputs.inputs.inputs;
# self = flake-inputs.self;
nixpkgs = inputs.nixpkgs; nixpkgs = inputs.nixpkgs;
inherit (builtins) concatLists attrValues mapAttrs elemAt match readDir filter listToAttrs; inherit (builtins) concatLists attrValues mapAttrs elemAt match readDir filter listToAttrs;
inherit (nixpkgs.lib) hasSuffix nixosSystem genAttrs; inherit (nixpkgs.lib) hasSuffix nixosSystem genAttrs;