modules: users: reformat
This commit is contained in:
parent
9973e0d32f
commit
05e0cd4e1f
|
@ -25,13 +25,14 @@ in
|
||||||
"video" # screen control
|
"video" # screen control
|
||||||
"wheel" # `sudo` for the user.
|
"wheel" # `sudo` for the user.
|
||||||
];
|
];
|
||||||
openssh.authorizedKeys.keys = with builtins; let
|
openssh.authorizedKeys.keys = with builtins;
|
||||||
keyDir = ./ssh;
|
let
|
||||||
contents = readDir keyDir;
|
keyDir = ./ssh;
|
||||||
names = attrNames contents;
|
contents = readDir keyDir;
|
||||||
files = filter (name: contents.${name} == "regular") names;
|
names = attrNames contents;
|
||||||
keys = map (basename: readFile (keyDir + "/${basename}")) files;
|
files = filter (name: contents.${name} == "regular") names;
|
||||||
in
|
keys = map (basename: readFile (keyDir + "/${basename}")) files;
|
||||||
keys;
|
in
|
||||||
|
keys;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue