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

+3 -3
View File
@@ -1,13 +1,13 @@
{
lib,
config,
paths,
lib',
...
}:
let
inherit (config.host) username;
adminHosts = (import ../../utils { inherit lib; }).adminHosts paths.hosts;
inherit (lib') adminHosts;
in
{
options.ssh = {
@@ -23,7 +23,7 @@ in
map (
hostname:
let
keyFile = paths.hosts + "/${hostname}/ssh_user.pub";
keyFile = lib'.hostsPath + "/${hostname}/ssh_user.pub";
in
lib.optionals (builtins.pathExists keyFile) (lib.splitString "\n" (builtins.readFile keyFile))
) ((builtins.filter (h: h != config.host.name) adminHosts) ++ config.ssh.authorizedHosts)