tree-wide!: flatten identities structure

It was never used with the names in mind
This commit is contained in:
Primrose 2025-11-02 16:47:48 +08:00
parent 50db96001e
commit 62a710c542
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 10 additions and 22 deletions

View file

@ -3,10 +3,7 @@
lib,
...
}: {
users.users.root.openssh.authorizedKeys.keys = let
ids = import ../../../identities.nix;
in
builtins.concatMap builtins.attrValues (builtins.attrValues ids);
users.users.root.openssh.authorizedKeys.keys = import ../../../identities.nix;
networking = {
networkmanager.enable = lib.mkForce false;

View file

@ -15,10 +15,7 @@
SUBSYSTEM=="usb", ACTION=="add", DRIVER=="apple-mfi-fastcharge", RUN+="/bin/sh -c 'echo Fast > /sys/class/power_supply/apple_mfi_fastcharge/charge_type'"
'';
users.users.root.openssh.authorizedKeys.keys = let
ids = import ../../../identities.nix;
in
builtins.concatMap builtins.attrValues (builtins.attrValues ids);
users.users.root.openssh.authorizedKeys.keys = import ../../../identities.nix;
networking = {
networkmanager.enable = lib.mkForce false;