users: refactor keys
This commit is contained in:
parent
8713cd3c58
commit
eaa650e208
10 changed files with 10 additions and 23 deletions
|
@ -1,14 +1,10 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
userLib = import ./lib.nix { inherit lib; };
|
||||
keys = [
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtr+rcxCZBAAqt8ocvhEEdBWfnRBCljjQPtC6Np24Y3H/HMe3rugsu3OhPscRV1k5hT+UlA2bpN8clMFAfK085orYY7DMUrgKQzFB7GDnOvuS1CqE1PRw7/OHLcWxDwf3YLpa8+ZIwMHFxR2gxsldCLGZV/VukNwhEvWs50SbXwVrjNkwA9LHy3Or0i6sAzU711V3B2heB83BnbT8lr3CKytF3uyoTEJvDE7XMmRdbvZK+c48bj6wDaqSmBEDrdNncsqnReDjScdNzXgP1849kMfIUwzXdhEF8QRVfU8n2A2kB0WRXiGgiL4ba5M+N9v1zLdzSHcmB0veWGgRyX8tN cardno:000607203159"
|
||||
];
|
||||
|
||||
in
|
||||
{
|
||||
users.users.adisbladis = {
|
||||
openssh.authorizedKeys.keys = keys;
|
||||
openssh.authorizedKeys.keyFiles = [ ./keys/adisbladis ];
|
||||
useDefaultShell = true;
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
|
|
1
users/keys/adisbladis
Normal file
1
users/keys/adisbladis
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtr+rcxCZBAAqt8ocvhEEdBWfnRBCljjQPtC6Np24Y3H/HMe3rugsu3OhPscRV1k5hT+UlA2bpN8clMFAfK085orYY7DMUrgKQzFB7GDnOvuS1CqE1PRw7/OHLcWxDwf3YLpa8+ZIwMHFxR2gxsldCLGZV/VukNwhEvWs50SbXwVrjNkwA9LHy3Or0i6sAzU711V3B2heB83BnbT8lr3CKytF3uyoTEJvDE7XMmRdbvZK+c48bj6wDaqSmBEDrdNncsqnReDjScdNzXgP1849kMfIUwzXdhEF8QRVfU8n2A2kB0WRXiGgiL4ba5M+N9v1zLdzSHcmB0veWGgRyX8tN cardno:000607203159
|
1
users/keys/mic92
Normal file
1
users/keys/mic92
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbBp2dH2X3dcU1zh+xW3ZsdYROKpJd3n13ssOP092qE joerg@turingmachine
|
1
users/keys/ryantm
Normal file
1
users/keys/ryantm
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO37rmfhCI8e1aflMe1AlfK3zf9tXPHjV9dCb1FBupWt
|
1
users/keys/zimbatm
Normal file
1
users/keys/zimbatm
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOuiDoBOxgyer8vGcfAIbE6TC4n4jo8lhG9l01iJ0bZz
|
1
users/keys/zowoq
Normal file
1
users/keys/zowoq
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFbCYwWByGE46XHH4Q0vZgQ5sOUgbH50M8KO2xhBC4m/
|
|
@ -1,13 +1,10 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
userLib = import ./lib.nix { inherit lib; };
|
||||
keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbBp2dH2X3dcU1zh+xW3ZsdYROKpJd3n13ssOP092qE joerg@turingmachine"
|
||||
];
|
||||
in
|
||||
{
|
||||
users.users.mic92 = {
|
||||
openssh.authorizedKeys.keys = keys;
|
||||
openssh.authorizedKeys.keyFiles = [ ./keys/mic92 ];
|
||||
useDefaultShell = true;
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
userLib = import ./lib.nix { inherit lib; };
|
||||
keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO37rmfhCI8e1aflMe1AlfK3zf9tXPHjV9dCb1FBupWt"
|
||||
];
|
||||
|
||||
in
|
||||
{
|
||||
users.users.ryantm = {
|
||||
openssh.authorizedKeys.keys = keys;
|
||||
openssh.authorizedKeys.keyFiles = [ ./keys/ryantm ];
|
||||
useDefaultShell = true;
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
userLib = import ./lib.nix { inherit lib; };
|
||||
keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOuiDoBOxgyer8vGcfAIbE6TC4n4jo8lhG9l01iJ0bZz"
|
||||
];
|
||||
in
|
||||
{
|
||||
users.users.zimbatm = {
|
||||
openssh.authorizedKeys.keys = keys;
|
||||
openssh.authorizedKeys.keyFiles = [ ./keys/zimbatm ];
|
||||
useDefaultShell = true;
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
userLib = import ./lib.nix { inherit lib; };
|
||||
keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFbCYwWByGE46XHH4Q0vZgQ5sOUgbH50M8KO2xhBC4m/"
|
||||
];
|
||||
|
||||
in
|
||||
{
|
||||
users.users.zowoq = {
|
||||
openssh.authorizedKeys.keys = keys;
|
||||
openssh.authorizedKeys.keyFiles = [ ./keys/zowoq ];
|
||||
useDefaultShell = true;
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
|
|
Loading…
Add table
Reference in a new issue