mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -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"];
|
||||
runes = import ../modules/runes;
|
||||
in rec {
|
||||
forAllSystems = f: genAttrs supportedSystems (system: f nixpkgs.legacyPackages.${system});
|
||||
mkRune = {
|
||||
rune,
|
||||
number ? "2",
|
||||
number ? "6",
|
||||
runeKind ? "braille",
|
||||
}:
|
||||
"[1;3${number}m\n" + runes.${rune}.${runeKind} + "\n[0m";
|
||||
|
||||
forAllSystems = f: genAttrs supportedSystems (system: f nixpkgs.legacyPackages.${system});
|
||||
"[1;3${number}m\n\n" + runes.${rune}.${runeKind} + "\n[0m";
|
||||
|
||||
isNixFile = path: hasSuffix ".nix" path;
|
||||
buildOizys = _:
|
||||
forAllSystems (
|
||||
pkgs: let
|
||||
|
@ -29,8 +29,6 @@ in rec {
|
|||
}
|
||||
);
|
||||
|
||||
isNixFile = path: hasSuffix ".nix" path;
|
||||
|
||||
mkSystem = hostname:
|
||||
nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
@ -39,13 +37,7 @@ in rec {
|
|||
++ filter isNixFile (listFilesRecursive (../. + "/hosts/${hostname}"));
|
||||
specialArgs = {inherit inputs mkRune;};
|
||||
};
|
||||
|
||||
mapHosts = dir:
|
||||
mapAttrs
|
||||
(name: _: mkSystem name)
|
||||
(readDir dir);
|
||||
|
||||
|
||||
mapHosts = dir: mapAttrs (name: _: mkSystem name) (readDir dir);
|
||||
buildHosts = _: mapHosts ../hosts;
|
||||
|
||||
findModules = modulesPath: listToAttrs (findModulesList modulesPath);
|
||||
|
|
Loading…
Reference in a new issue