mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -06:00
standardize runes
This commit is contained in:
parent
3983dc35bd
commit
5b7025f6d5
3 changed files with 7 additions and 15 deletions
|
@ -10,15 +10,15 @@
|
||||||
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
|
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
|
||||||
runes = import ../modules/runes;
|
runes = import ../modules/runes;
|
||||||
in rec {
|
in rec {
|
||||||
|
forAllSystems = f: genAttrs supportedSystems (system: f nixpkgs.legacyPackages.${system});
|
||||||
mkRune = {
|
mkRune = {
|
||||||
rune,
|
rune,
|
||||||
number ? "2",
|
number ? "6",
|
||||||
runeKind ? "braille",
|
runeKind ? "braille",
|
||||||
}:
|
}:
|
||||||
"[1;3${number}m\n" + runes.${rune}.${runeKind} + "\n[0m";
|
"[1;3${number}m\n\n" + runes.${rune}.${runeKind} + "\n[0m";
|
||||||
|
|
||||||
forAllSystems = f: genAttrs supportedSystems (system: f nixpkgs.legacyPackages.${system});
|
|
||||||
|
|
||||||
|
isNixFile = path: hasSuffix ".nix" path;
|
||||||
buildOizys = _:
|
buildOizys = _:
|
||||||
forAllSystems (
|
forAllSystems (
|
||||||
pkgs: let
|
pkgs: let
|
||||||
|
@ -29,8 +29,6 @@ in rec {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
isNixFile = path: hasSuffix ".nix" path;
|
|
||||||
|
|
||||||
mkSystem = hostname:
|
mkSystem = hostname:
|
||||||
nixosSystem {
|
nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
@ -39,13 +37,7 @@ in rec {
|
||||||
++ filter isNixFile (listFilesRecursive (../. + "/hosts/${hostname}"));
|
++ filter isNixFile (listFilesRecursive (../. + "/hosts/${hostname}"));
|
||||||
specialArgs = {inherit inputs mkRune;};
|
specialArgs = {inherit inputs mkRune;};
|
||||||
};
|
};
|
||||||
|
mapHosts = dir: mapAttrs (name: _: mkSystem name) (readDir dir);
|
||||||
mapHosts = dir:
|
|
||||||
mapAttrs
|
|
||||||
(name: _: mkSystem name)
|
|
||||||
(readDir dir);
|
|
||||||
|
|
||||||
|
|
||||||
buildHosts = _: mapHosts ../hosts;
|
buildHosts = _: mapHosts ../hosts;
|
||||||
|
|
||||||
findModules = modulesPath: listToAttrs (findModulesList modulesPath);
|
findModules = modulesPath: listToAttrs (findModulesList modulesPath);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
braille = '' ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
braille = '' ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⢠⣾⣦⡀⠀⠀⠀⣶⣶⠀⠀⠀⢀⣴⣷⡄⠀⠀⠀
|
⠀⠀⠀⢠⣾⣦⡀⠀⠀⠀⣶⣶⠀⠀⠀⢀⣴⣷⡄⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠙⢿⣷⣄⠀⠀⣿⣿⠀⠀⣠⣾⡿⠋⠀⠀⠀⠀
|
⠀⠀⠀⠀⠙⢿⣷⣄⠀⠀⣿⣿⠀⠀⣠⣾⡿⠋⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠙⢿⣷⣄⣿⣿⣠⣾⡿⠋⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠙⢿⣷⣄⣿⣿⣠⣾⡿⠋⠀⠀⠀⠀⠀⠀
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
braille = '' ⠀
|
braille = '' ⠀
|
||||||
⢰⣶⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣶⡆⠀⠀
|
⢰⣶⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣶⡆⠀⠀
|
||||||
⠀⠀⢸⣿⡿⢿⣷⣦⣄⠀⠀⠀⠀⣀⣴⣾⡿⠿⣿⡇⠀⠀
|
⠀⠀⢸⣿⡿⢿⣷⣦⣄⠀⠀⠀⠀⣀⣴⣾⡿⠿⣿⡇⠀⠀
|
||||||
⠀⠀⢸⣿⡇⠀⠈⠛⠿⣿⣶⣴⣿⠿⠛⠁⠀⢸⣿⡇⠀⠀
|
⠀⠀⢸⣿⡇⠀⠈⠛⠿⣿⣶⣴⣿⠿⠛⠁⠀⢸⣿⡇⠀⠀
|
||||||
|
|
Loading…
Reference in a new issue