modules: users: reformat
This commit is contained in:
parent
3177d01157
commit
5973841ff5
1 changed files with 9 additions and 8 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue