mirror of
https://github.com/partofmyid/register.git
synced 2026-06-05 18:46:50 +07:00
fix(nix): importing thing was brokeb
This commit is contained in:
parent
291bc39a7a
commit
20ebb7da08
1 changed files with 6 additions and 4 deletions
10
flake.nix
10
flake.nix
|
|
@ -14,11 +14,13 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
domains = builtins.readDir ./domains;
|
inherit (import <nixpkgs> { }) lib;
|
||||||
domainFiles = builtins.filterAttrs (
|
|
||||||
|
domainsFolder = builtins.readDir ./domains;
|
||||||
|
domainFiles = lib.filterAttrs (
|
||||||
name: type: type == "regular" && builtins.match ".*\\.nix" name != null
|
name: type: type == "regular" && builtins.match ".*\\.nix" name != null
|
||||||
) domains;
|
) domainsFolder;
|
||||||
subdomains = builtins.mapAttrs' (
|
subdomains = lib.mapAttrs' (
|
||||||
name: _:
|
name: _:
|
||||||
let
|
let
|
||||||
key = builtins.replaceStrings [ ".nix" ] [ "" ] name;
|
key = builtins.replaceStrings [ ".nix" ] [ "" ] name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue