refactor: rename utils to lib'
check / lint (push) Successful in 15s

This commit is contained in:
hektor committed 2026-11-06 14:35:01 +01:00
1 parent 1947ee0c9f
commit 6fa74fead8
22 files changed
+116 -144

No files matched your search

+5 -6
View File
@@ -2,17 +2,16 @@
config,
lib,
pkgs,
myUtils,
paths,
lib',
...
}:
let
cfg = config.ssh;
hostNames = myUtils.dirNames paths.hosts;
hostsWithKeys = lib.filter (
hostname: builtins.pathExists (paths.hosts + "/${hostname}/ssh_host.pub")
) hostNames;
hostname: builtins.pathExists (lib'.hostsPath + "/${hostname}/ssh_host.pub")
) lib'.hostNames;
in
{
options.ssh.enable = lib.mkEnableOption "ssh";
@@ -37,7 +36,7 @@ in
lib.genAttrs hostsWithKeys (
hostname:
let
meta = myUtils.hostMeta (paths.hosts + "/${hostname}");
meta = lib'.hostMeta hostname;
in
{
User = meta.host.username;