mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-29 11:30:43 -06:00
Compare commits
14 commits
5b04c0519e
...
2ca688181b
Author | SHA1 | Date | |
---|---|---|---|
|
2ca688181b | ||
99cc850eb7 | |||
69ac3fa6a6 | |||
7dfe185a9f | |||
a7302bd609 | |||
bf192f478d | |||
7fc911b1a8 | |||
a160e2eccc | |||
6bbc8aa28a | |||
3040b77bff | |||
0b3f307660 | |||
77c6375f5f | |||
c0ba1896a5 | |||
bf6b0b26d8 |
11 changed files with 321 additions and 59 deletions
250
flake.lock
250
flake.lock
|
@ -1,5 +1,25 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"f1multiviewer": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1712592932,
|
||||||
|
"narHash": "sha256-G44hEGn5+PvjkY9YvUoWnFz9FZOtRKwEc6W/7EjzOgs=",
|
||||||
|
"owner": "daylinmorgan",
|
||||||
|
"repo": "f1multiviewer-flake",
|
||||||
|
"rev": "189b84de363cfa1d95cc77093e4e3bcd1ff1e492",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "daylinmorgan",
|
||||||
|
"repo": "f1multiviewer-flake",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1688025799,
|
"lastModified": 1688025799,
|
||||||
|
@ -15,6 +35,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-compat_2": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1673956053,
|
||||||
|
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
|
@ -73,6 +109,60 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-utils_3": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_4"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1710146030,
|
||||||
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1659877975,
|
||||||
|
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gitignore": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"zls",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1709087332,
|
||||||
|
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "gitignore.nix",
|
||||||
|
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "gitignore.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hyprcursor": {
|
"hyprcursor": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprlang": [
|
"hyprlang": [
|
||||||
|
@ -89,11 +179,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1712339458,
|
"lastModified": 1712434681,
|
||||||
"narHash": "sha256-j8pv3tL2EFLGuvFoO64dHWD8YzNvD77hRb4EEx5ADgE=",
|
"narHash": "sha256-qwmR2p1oc48Bj7gUDvb1oGL19Rjs2PmEmk4ChV01A5o=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprcursor",
|
"repo": "hyprcursor",
|
||||||
"rev": "981b6617822dadc40246a6c70194d02dfc12e4c6",
|
"rev": "818d8c4b69e0997483d60b75f701fe14b561a7a3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -115,11 +205,11 @@
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1712448441,
|
"lastModified": 1713050186,
|
||||||
"narHash": "sha256-dQ+5CYpy/dbpX0hvIFBYF/FDjWal4wAYpTHfUzGoDRg=",
|
"narHash": "sha256-AKdzVa0Zz5PQ1ptQgD0jj8J+UZUW9OeKGZ0mNVnkyI4=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "9f1604e4b0afec40cfa9bc095d6613a7f749b2c1",
|
"rev": "0634aaeac6cca12e4f72174c431c2db9da9c0072",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -136,11 +226,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1711036118,
|
"lastModified": 1712505318,
|
||||||
"narHash": "sha256-BxWizZAc845ks9BjEXosRjfBv/NMr1WwoORBQuixfII=",
|
"narHash": "sha256-fzlBLhXUN6y7mzEtcGNRDXxFakBEfaj4Bmj5PuoCNaM=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "contrib",
|
"repo": "contrib",
|
||||||
"rev": "536f00c5895015da1e7aa85bbee9aa6dcd149e69",
|
"rev": "5870244b592c22558b658dbaf94f9e41afb0316f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -199,17 +289,29 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"langref": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"narHash": "sha256-94broSBethRhPJr0G9no4TPyB8ee6BQ/hHK1QnLPln0=",
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://raw.githubusercontent.com/ziglang/zig/54bbc73f8502fe073d385361ddb34a43d12eec39/doc/langref.html.in"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://raw.githubusercontent.com/ziglang/zig/54bbc73f8502fe073d385361ddb34a43d12eec39/doc/langref.html.in"
|
||||||
|
}
|
||||||
|
},
|
||||||
"lib-aggregate": {
|
"lib-aggregate": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1711886936,
|
"lastModified": 1712491724,
|
||||||
"narHash": "sha256-D2WENp9GuaCostvNcQ7vElekk0V5cuMdnFZ7NfRhVrQ=",
|
"narHash": "sha256-E5EcBzf/zaR3hD8g1CDtqqwXXebSWtqOvoaR+LDjTME=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "lib-aggregate",
|
"repo": "lib-aggregate",
|
||||||
"rev": "9c06929b83e57c18d125f1105ba6a423f24083d2",
|
"rev": "2737d0204685c3274390229a09eb8f7eaa1a9e89",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -268,11 +370,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1711854532,
|
"lastModified": 1712459390,
|
||||||
"narHash": "sha256-JPStavwlT7TfxxiXHk6Q7sbNxtnXAIjXQJMLO0KB6M0=",
|
"narHash": "sha256-e12bNDottaGoBgd0AdH/bQvk854xunlWAdZwr/oHO1c=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-index-database",
|
"repo": "nix-index-database",
|
||||||
"rev": "2844b5f3ad3b478468151bd101370b9d8ef8a3a7",
|
"rev": "4676d72d872459e1e3a248d049609f110c570e9a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -283,11 +385,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1712420723,
|
"lastModified": 1712883908,
|
||||||
"narHash": "sha256-VnG0Eu394Ga2FCe8Q66m6OEQF8iAqjDYsjmtl+N2omk=",
|
"narHash": "sha256-icE1IJE9fHcbDfJ0+qWoDdcBXUoZCcIJxME4lMHwvSM=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9e7f26f82acb057498335362905fde6fea4ca50a",
|
"rev": "a0c9e3aee1000ac2bfb0e5b98c94c946a5d180a9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -299,11 +401,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1711846064,
|
"lastModified": 1712450863,
|
||||||
"narHash": "sha256-cqfX0QJNEnge3a77VnytM0Q6QZZ0DziFXt6tSCV8ZSc=",
|
"narHash": "sha256-K6IkdtMtq9xktmYPj0uaYc8NsIqHuaAoRBaMgu9Fvrw=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs.lib",
|
"repo": "nixpkgs.lib",
|
||||||
"rev": "90b1a963ff84dc532db92f678296ff2499a60a87",
|
"rev": "3c62b6a12571c9a7f65ab037173ee153d539905f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -322,11 +424,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1712439754,
|
"lastModified": 1713039214,
|
||||||
"narHash": "sha256-2wRTYlTnkk35ChwnULdl3GomhgEO9PYCWxvm3Ozrj0w=",
|
"narHash": "sha256-CV0LzaPJLlMOo8hv4qCvGoIYXB9GL8gxpVFZ+zpZkK4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs-wayland",
|
"repo": "nixpkgs-wayland",
|
||||||
"rev": "b4c308244d66a3737e3e56f22c9ee69a0fe17665",
|
"rev": "b816217ba4fc77d19ca033ab8f13b35ba0331e91",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -373,6 +475,7 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"f1multiviewer": "f1multiviewer",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"hyprland-contrib": "hyprland-contrib",
|
"hyprland-contrib": "hyprland-contrib",
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
|
@ -381,16 +484,17 @@
|
||||||
"pinix": "pinix",
|
"pinix": "pinix",
|
||||||
"stable": "stable",
|
"stable": "stable",
|
||||||
"tsm": "tsm",
|
"tsm": "tsm",
|
||||||
"zig2nix": "zig2nix"
|
"zig2nix": "zig2nix",
|
||||||
|
"zls": "zls"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stable": {
|
"stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1712310679,
|
"lastModified": 1712867921,
|
||||||
"narHash": "sha256-XgC/a/giEeNkhme/AV1ToipoZ/IVm1MV2ntiK4Tm+pw=",
|
"narHash": "sha256-edTFV4KldkCMdViC/rmpJa7oLIU8SE/S35lh/ukC7bg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "72da83d9515b43550436891f538ff41d68eecc7f",
|
"rev": "51651a540816273b67bc4dedea2d37d116c5f7fe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -445,6 +549,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"systems_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -492,20 +611,18 @@
|
||||||
"wlroots": {
|
"wlroots": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"host": "gitlab.freedesktop.org",
|
"lastModified": 1712935342,
|
||||||
"lastModified": 1709983277,
|
"narHash": "sha256-zzIbTFNFd/as42jyGx23fil2uBDYYv+8GA5JmRq5y9c=",
|
||||||
"narHash": "sha256-wXWIJLd4F2JZeMaihWVDW/yYXCLEC8OpeNJZg9a9ly8=",
|
"owner": "hyprwm",
|
||||||
"owner": "wlroots",
|
"repo": "wlroots-hyprland",
|
||||||
"repo": "wlroots",
|
"rev": "62eeffbe233d199f520a5755c344e85f8eab7940",
|
||||||
"rev": "50eae512d9cecbf0b3b1898bb1f0b40fa05fe19b",
|
"type": "github"
|
||||||
"type": "gitlab"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"host": "gitlab.freedesktop.org",
|
"owner": "hyprwm",
|
||||||
"owner": "wlroots",
|
"repo": "wlroots-hyprland",
|
||||||
"repo": "wlroots",
|
"rev": "62eeffbe233d199f520a5755c344e85f8eab7940",
|
||||||
"rev": "50eae512d9cecbf0b3b1898bb1f0b40fa05fe19b",
|
"type": "github"
|
||||||
"type": "gitlab"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"xdph": {
|
"xdph": {
|
||||||
|
@ -541,6 +658,29 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"zig-overlay": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_2",
|
||||||
|
"flake-utils": "flake-utils_4",
|
||||||
|
"nixpkgs": [
|
||||||
|
"zls",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1712794997,
|
||||||
|
"narHash": "sha256-H1sVVagnlL6xmvSVELGMEAhvJHv4auAY3B97Oi2I8uo=",
|
||||||
|
"owner": "mitchellh",
|
||||||
|
"repo": "zig-overlay",
|
||||||
|
"rev": "9687044a467176bea9e3f0a972143bcbad5dae90",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "mitchellh",
|
||||||
|
"repo": "zig-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"zig2nix": {
|
"zig2nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils_2",
|
||||||
|
@ -549,11 +689,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1712365704,
|
"lastModified": 1712970631,
|
||||||
"narHash": "sha256-kihexAwySn5d5JItCwLeDgC7+TWpb+unjUJNSgqZ60A=",
|
"narHash": "sha256-Y09UxZCzRvvlKEFPfZ8p2xGmnGBi0ocHoAQnQ+Wkuok=",
|
||||||
"owner": "Cloudef",
|
"owner": "Cloudef",
|
||||||
"repo": "zig2nix",
|
"repo": "zig2nix",
|
||||||
"rev": "ea80980b813d67f52bb6eaa87fc1b9149259943d",
|
"rev": "8124e7d607494287b4d88d5d86acb4681265a1e2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -561,6 +701,30 @@
|
||||||
"repo": "zig2nix",
|
"repo": "zig2nix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"zls": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_3",
|
||||||
|
"gitignore": "gitignore",
|
||||||
|
"langref": "langref",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"zig-overlay": "zig-overlay"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1713042264,
|
||||||
|
"narHash": "sha256-10CWxJ9xpPZlqthBp/2NMrBXp6epUKAjqvp9Jsjd9Tk=",
|
||||||
|
"owner": "zigtools",
|
||||||
|
"repo": "zls",
|
||||||
|
"rev": "9ba4742982f34bf70c0763f6ebdbae755c64bde5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "zigtools",
|
||||||
|
"repo": "zls",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
|
@ -25,6 +25,12 @@
|
||||||
|
|
||||||
zig2nix.url = "github:Cloudef/zig2nix";
|
zig2nix.url = "github:Cloudef/zig2nix";
|
||||||
zig2nix.inputs.nixpkgs.follows = "nixpkgs";
|
zig2nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
zls.url = "github:zigtools/zls";
|
||||||
|
zls.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
f1multiviewer.url = "github:daylinmorgan/f1multiviewer-flake";
|
||||||
|
f1multiviewer.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
|
|
|
@ -20,6 +20,7 @@ in {
|
||||||
"nim"
|
"nim"
|
||||||
"tex"
|
"tex"
|
||||||
"node"
|
"node"
|
||||||
|
"zig"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
@ -25,6 +26,8 @@ in {
|
||||||
accents = ["rosewater"];
|
accents = ["rosewater"];
|
||||||
variant = "mocha";
|
variant = "mocha";
|
||||||
})
|
})
|
||||||
|
|
||||||
|
inputs.f1multiviewer.outputs.packages.${pkgs.system}.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ mkDefaultOizysModule config "cli" {
|
||||||
delta
|
delta
|
||||||
ripgrep
|
ripgrep
|
||||||
|
|
||||||
|
glow
|
||||||
btop
|
btop
|
||||||
inputs.tsm.packages.${pkgs.system}.tsm
|
inputs.tsm.packages.${pkgs.system}.tsm
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{lib, ...}: let
|
{lib, ...}: let
|
||||||
inherit (lib) mkOption types literalExpression mdDoc;
|
inherit (lib) mkOption types literalExpression mdDoc;
|
||||||
in {
|
in {
|
||||||
imports = [./nim.nix ./tex.nix ./misc.nix ./node.nix ./python.nix];
|
imports = [./nim.nix ./tex.nix ./misc.nix ./node.nix ./python.nix ./zig.nix];
|
||||||
options.oizys.languages = mkOption {
|
options.oizys.languages = mkOption {
|
||||||
type = with types; (listOf str);
|
type = with types; (listOf str);
|
||||||
description = lib.mdDoc ''
|
description = mdDoc ''
|
||||||
List of programming languages to enable.
|
List of programming languages to enable.
|
||||||
'';
|
'';
|
||||||
default = [];
|
default = [];
|
||||||
|
|
16
modules/languages/zig.nix
Normal file
16
modules/languages/zig.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIfIn;
|
||||||
|
cfg = config.oizys.languages;
|
||||||
|
zig = inputs.zig2nix.outputs.packages.${pkgs.system}.zig.master.bin;
|
||||||
|
zls = inputs.zls.outputs.packages.${pkgs.system}.default;
|
||||||
|
in {
|
||||||
|
config = mkIfIn "zig" cfg {
|
||||||
|
environment.systemPackages = [zig zls];
|
||||||
|
};
|
||||||
|
}
|
|
@ -24,6 +24,7 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nil
|
nil
|
||||||
alejandra
|
alejandra
|
||||||
|
nixfmt-rfc-style
|
||||||
|
|
||||||
self.packages.${pkgs.system}.default
|
self.packages.${pkgs.system}.default
|
||||||
inputs.pinix.packages.${pkgs.system}.default
|
inputs.pinix.packages.${pkgs.system}.default
|
||||||
|
|
|
@ -3,9 +3,13 @@ const std = @import("std");
|
||||||
const yazap = @import("yazap");
|
const yazap = @import("yazap");
|
||||||
const App = yazap.App;
|
const App = yazap.App;
|
||||||
const Arg = yazap.Arg;
|
const Arg = yazap.Arg;
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
|
|
||||||
|
allocator: Allocator,
|
||||||
app: App,
|
app: App,
|
||||||
|
matches: *const yazap.ArgMatches = undefined,
|
||||||
|
forward: ?[][]const u8 = null,
|
||||||
|
process_args: ?[]const [:0]u8 = null,
|
||||||
|
|
||||||
pub fn init(allocator: Allocator) !Cli {
|
pub fn init(allocator: Allocator) !Cli {
|
||||||
var app = App.init(allocator, "oizys", "nix begat oizys");
|
var app = App.init(allocator, "oizys", "nix begat oizys");
|
||||||
|
@ -17,19 +21,55 @@ pub fn init(allocator: Allocator) !Cli {
|
||||||
var cmd_output = app.createCommand("output", "show system flake output path");
|
var cmd_output = app.createCommand("output", "show system flake output path");
|
||||||
var cmd_boot = app.createCommand("boot", "nixos rebuild boot");
|
var cmd_boot = app.createCommand("boot", "nixos rebuild boot");
|
||||||
var cmd_switch = app.createCommand("switch", "nixos rebuild switch");
|
var cmd_switch = app.createCommand("switch", "nixos rebuild switch");
|
||||||
const commands = .{ &cmd_dry, &cmd_build, &cmd_cache, &cmd_output, &cmd_switch, &cmd_boot };
|
|
||||||
|
|
||||||
try cmd_cache.addArg(Arg.singleValueOption("name", 'n', "name of cachix cache"));
|
try cmd_cache.addArg(Arg.singleValueOption("name", 'n', "name of cachix cache"));
|
||||||
inline for (commands) |subcmd| {
|
inline for (.{
|
||||||
|
&cmd_dry,
|
||||||
|
&cmd_build,
|
||||||
|
&cmd_cache,
|
||||||
|
&cmd_output,
|
||||||
|
&cmd_switch,
|
||||||
|
&cmd_boot,
|
||||||
|
}) |subcmd| {
|
||||||
|
try subcmd.addArg(Arg.positional("forward", null, null));
|
||||||
try subcmd.addArg(Arg.singleValueOption("flake", 'f', "path to flake"));
|
try subcmd.addArg(Arg.singleValueOption("flake", 'f', "path to flake"));
|
||||||
try subcmd.addArg(Arg.singleValueOption("host", null, "hostname (default: current host)"));
|
try subcmd.addArg(Arg.singleValueOption("host", null, "hostname (default: current host)"));
|
||||||
try subcmd.addArg(Arg.booleanOption("no-pinix", null, "don't use pinix"));
|
try subcmd.addArg(Arg.booleanOption("no-pinix", null, "don't use pinix"));
|
||||||
try oizys.addSubcommand(subcmd.*);
|
try oizys.addSubcommand(subcmd.*);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Cli{ .app = app };
|
return Cli{
|
||||||
|
.allocator = allocator,
|
||||||
|
.app = app,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn get_forward_args(self: *Cli, args: []const [:0]u8) !usize {
|
||||||
|
var forward = std.ArrayList([]const u8).init(self.allocator);
|
||||||
|
|
||||||
|
const delim_idx: usize = delim_lookup: for (args, 0..) |arg, i| {
|
||||||
|
if (std.mem.eql(u8, "--", arg)) break :delim_lookup i;
|
||||||
|
} else args.len;
|
||||||
|
|
||||||
|
if (args.len > delim_idx)
|
||||||
|
for (args[delim_idx + 1 ..]) |fwd|
|
||||||
|
try forward.append(fwd);
|
||||||
|
|
||||||
|
self.forward = try forward.toOwnedSlice();
|
||||||
|
return delim_idx;
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn parse(self: *Cli) !void {
|
||||||
|
self.process_args = try std.process.argsAlloc(self.allocator);
|
||||||
|
const delim_idx = try self.get_forward_args(self.process_args.?);
|
||||||
|
self.matches = try self.app.parseFrom(self.process_args.?[1..delim_idx]);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn deinit(self: *Cli) void {
|
pub fn deinit(self: *Cli) void {
|
||||||
|
std.process.argsFree(self.allocator, self.process_args.?);
|
||||||
|
if (self.forward) |fwd| {
|
||||||
|
for (fwd) |arg| self.allocator.free(arg);
|
||||||
|
self.allocator.free(fwd);
|
||||||
|
}
|
||||||
self.app.deinit();
|
self.app.deinit();
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@ output: []const u8,
|
||||||
cmd: OizysCmd,
|
cmd: OizysCmd,
|
||||||
no_pinix: bool,
|
no_pinix: bool,
|
||||||
debug: bool = false,
|
debug: bool = false,
|
||||||
|
forward: ?[][]const u8,
|
||||||
|
|
||||||
pub const OizysCmd = enum {
|
pub const OizysCmd = enum {
|
||||||
dry,
|
dry,
|
||||||
|
@ -21,20 +22,27 @@ pub const OizysCmd = enum {
|
||||||
build,
|
build,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn init(allocator: std.mem.Allocator, matches: *const ArgMatches) !Oizys {
|
pub fn init(allocator: std.mem.Allocator, matches: *const ArgMatches, forward: ?[][]const u8) !Oizys {
|
||||||
const cmd = matches.subcommand.?.name;
|
const cmd = matches.subcommand.?.name;
|
||||||
const flags = matches.subcommandMatches(cmd).?;
|
const flags = matches.subcommandMatches(cmd).?;
|
||||||
const host = flags.getSingleValue("host") orelse try Oizys.getDefaultHostName(allocator);
|
const host = flags.getSingleValue("host") orelse
|
||||||
const flake = flags.getSingleValue("flake") orelse try Oizys.getDefaultFlake(allocator);
|
try Oizys.getDefaultHostName(allocator);
|
||||||
|
const flake = flags.getSingleValue("flake") orelse
|
||||||
|
try Oizys.getDefaultFlake(allocator);
|
||||||
|
|
||||||
return Oizys{
|
return Oizys{
|
||||||
.allocator = allocator,
|
.allocator = allocator,
|
||||||
.host = host,
|
.host = host,
|
||||||
.flake = flake,
|
.flake = flake,
|
||||||
.output = try std.fmt.allocPrint(allocator, "{s}#nixosConfigurations.{s}.config.system.build.toplevel", .{ flake, host }),
|
.output = try std.fmt.allocPrint(
|
||||||
|
allocator,
|
||||||
|
"{s}#nixosConfigurations.{s}.config.system.build.toplevel",
|
||||||
|
.{ flake, host },
|
||||||
|
),
|
||||||
.cmd = std.meta.stringToEnum(OizysCmd, cmd).?,
|
.cmd = std.meta.stringToEnum(OizysCmd, cmd).?,
|
||||||
.cache_name = flags.getSingleValue("cache") orelse "daylin",
|
.cache_name = flags.getSingleValue("cache") orelse "daylin",
|
||||||
.no_pinix = flags.containsArg("no-pinix"),
|
.no_pinix = flags.containsArg("no-pinix"),
|
||||||
|
.forward = forward,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +75,11 @@ pub fn getDefaultFlake(allocator: Allocator) ![]const u8 {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn getOutputPath(self: *Oizys) ![]const u8 {
|
pub fn getOutputPath(self: *Oizys) ![]const u8 {
|
||||||
return std.fmt.allocPrint(self.allocator, "{s}#nixosConfigurations.{s}.config.system.build.toplevel", .{ self.flake, self.host });
|
return std.fmt.allocPrint(
|
||||||
|
self.allocator,
|
||||||
|
"{s}#nixosConfigurations.{s}.config.system.build.toplevel",
|
||||||
|
.{ self.flake, self.host },
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const NixCmd = enum { Nix, NixosRebuild };
|
pub const NixCmd = enum { Nix, NixosRebuild };
|
||||||
|
@ -81,12 +93,27 @@ pub fn runNixCmd(self: *Oizys, cmd: NixCmd, argv: []const []const u8) !void {
|
||||||
NixCmd.NixosRebuild => try args.appendSlice(&.{ "sudo", self.nixos_rebuild() }),
|
NixCmd.NixosRebuild => try args.appendSlice(&.{ "sudo", self.nixos_rebuild() }),
|
||||||
}
|
}
|
||||||
try args.appendSlice(argv);
|
try args.appendSlice(argv);
|
||||||
|
if (self.forward) |fwd| try args.appendSlice(fwd);
|
||||||
var p = std.ChildProcess.init(args.items, self.allocator);
|
var p = std.ChildProcess.init(args.items, self.allocator);
|
||||||
_ = try p.spawnAndWait();
|
_ = try p.spawnAndWait();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn cache(self: *Oizys) !void {
|
pub fn cache(self: *Oizys) !void {
|
||||||
var p = std.ChildProcess.init(&.{ "cachix", "watch-exec", self.cache_name, "--verbose", "--", "nix", "build", self.flake, "--print-build-logs", "--accept-flake-config" }, self.allocator);
|
var p = std.ChildProcess.init(
|
||||||
|
&.{
|
||||||
|
"cachix",
|
||||||
|
"watch-exec",
|
||||||
|
self.cache_name,
|
||||||
|
"--verbose",
|
||||||
|
"--",
|
||||||
|
"nix",
|
||||||
|
"build",
|
||||||
|
self.output,
|
||||||
|
"--print-build-logs",
|
||||||
|
"--accept-flake-config",
|
||||||
|
},
|
||||||
|
self.allocator,
|
||||||
|
);
|
||||||
_ = try p.spawnAndWait();
|
_ = try p.spawnAndWait();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,7 +132,8 @@ pub fn run(self: *Oizys) !void {
|
||||||
try self.runNixCmd(NixCmd.Nix, &.{ "build", self.output });
|
try self.runNixCmd(NixCmd.Nix, &.{ "build", self.output });
|
||||||
},
|
},
|
||||||
.output => {
|
.output => {
|
||||||
std.debug.print("{s}", .{self.output});
|
const stdout = std.io.getStdOut().writer();
|
||||||
|
try stdout.print("{s}\n", .{self.output});
|
||||||
},
|
},
|
||||||
.cache => {
|
.cache => {
|
||||||
try self.cache();
|
try self.cache();
|
||||||
|
|
|
@ -9,14 +9,16 @@ pub fn main() !void {
|
||||||
const allocator = arena.allocator();
|
const allocator = arena.allocator();
|
||||||
|
|
||||||
var cli = try Cli.init(allocator);
|
var cli = try Cli.init(allocator);
|
||||||
const matches = try cli.app.parseProcess();
|
try cli.parse();
|
||||||
|
defer cli.deinit();
|
||||||
|
|
||||||
if (!matches.containsArgs()) {
|
if (!cli.matches.containsArgs()) {
|
||||||
try cli.app.displayHelp();
|
try cli.app.displayHelp();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var oizys = try Oizys.init(allocator, matches);
|
var oizys = try Oizys.init(allocator, cli.matches, cli.forward);
|
||||||
|
defer oizys.deinit();
|
||||||
try oizys.run();
|
try oizys.run();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue