mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
tree-wide!: flatten identities structure
It was never used with the names in mind
This commit is contained in:
parent
50db96001e
commit
62a710c542
4 changed files with 10 additions and 22 deletions
|
|
@ -3,10 +3,7 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
users.users.root.openssh.authorizedKeys.keys = let
|
users.users.root.openssh.authorizedKeys.keys = import ../../../identities.nix;
|
||||||
ids = import ../../../identities.nix;
|
|
||||||
in
|
|
||||||
builtins.concatMap builtins.attrValues (builtins.attrValues ids);
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = lib.mkForce false;
|
networkmanager.enable = lib.mkForce false;
|
||||||
|
|
|
||||||
|
|
@ -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'"
|
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
|
users.users.root.openssh.authorizedKeys.keys = import ../../../identities.nix;
|
||||||
ids = import ../../../identities.nix;
|
|
||||||
in
|
|
||||||
builtins.concatMap builtins.attrValues (builtins.attrValues ids);
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = lib.mkForce false;
|
networkmanager.enable = lib.mkForce false;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
{
|
[
|
||||||
vanadium = {
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGPq2o9pbmLRGrOpAP76eYCAscmfakDC7wPm9fmsCCQM leana@vanadium"
|
||||||
leana = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGPq2o9pbmLRGrOpAP76eYCAscmfakDC7wPm9fmsCCQM leana@vanadium";
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDc55vENX+13c4s2w7zjTb8T/AnBnTi96yRC5+fy7Z2A root@vanadium"
|
||||||
root = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDc55vENX+13c4s2w7zjTb8T/AnBnTi96yRC5+fy7Z2A root@vanadium";
|
|
||||||
};
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEXzNdCA0zZ+WmeKZnhQSQtUcxnQhhDl59E3BPQfLj7Q leana@hydrogen"
|
||||||
hydrogen = {
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIMVDmEt/12u9U4QGDZBx/Sx8itzqfQ4zWJvcC3pRZqP root@hydrogen"
|
||||||
leana = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEXzNdCA0zZ+WmeKZnhQSQtUcxnQhhDl59E3BPQfLj7Q leana@hydrogen";
|
]
|
||||||
root = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIMVDmEt/12u9U4QGDZBx/Sx8itzqfQ4zWJvcC3pRZqP root@hydrogen";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
let
|
let
|
||||||
ids = import ../identities.nix;
|
all = import ../identities.nix;
|
||||||
|
|
||||||
all =
|
|
||||||
builtins.concatMap builtins.attrValues (builtins.attrValues ids);
|
|
||||||
in {
|
in {
|
||||||
"wpa_password.age".publicKeys = all;
|
"wpa_password.age".publicKeys = all;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue