rearrange files

This commit is contained in:
Katherina Walshe-Grey 2024-07-09 18:14:33 +01:00
parent 18bc4afc65
commit 39c1bc664c
4 changed files with 18 additions and 7 deletions

View file

@ -1,5 +1,7 @@
{ config, lib, pkgs, ... }:
let keys = import ../../keys.nix;
in
{
users.users.qenya = {
isNormalUser = true;
@ -9,9 +11,7 @@
"networkmanager" # UI wifi configuration
"dialout" # access to serial ports
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJEmkV9arotms79lJPsLHkdzAac4eu3pYS08ym0sB/on qenya@tohru"
];
openssh.authorizedKeys.keys = keys.users.qenya;
uid = 1001;
};

View file

@ -27,7 +27,7 @@ in {
./common/ssh.nix
./common/sudo.nix
./common/utilities.nix
./users/qenya.nix
./common/users/qenya.nix
];
};

13
keys.nix Normal file
View file

@ -0,0 +1,13 @@
{
machines = {
tohru = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOk8wuGzF0Y7SaH9aimo3SmCz99MTQwL+rEVhx0jsueU root@tohru";
yevaud = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICHUAgyQhl390yUObLUI+jEbuNrZ2U6+8px628DolD+T root@yevaud";
orm = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGc9rkcdOVWozBFj3kLVnSyUQQbyyH+UG+bLawanQkRQ root@orm";
};
users = {
qenya = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJEmkV9arotms79lJPsLHkdzAac4eu3pYS08ym0sB/on qenya@tohru"
];
};
}

View file

@ -1,6 +1,4 @@
let
tohru = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOk8wuGzF0Y7SaH9aimo3SmCz99MTQwL+rEVhx0jsueU root@tohru";
yevaud = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICHUAgyQhl390yUObLUI+jEbuNrZ2U6+8px628DolD+T root@yevaud";
systems = [ tohru yevaud ];
keys = ../ssh-keys.nix;
in
{ }