mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
Fixes ssh authorized keys on Darwin
This commit is contained in:
parent
dd315a6b0b
commit
74cc06afbb
7 changed files with 14 additions and 12 deletions
|
@ -12,4 +12,6 @@
|
|||
timezone = "America/Vancouver";
|
||||
|
||||
username = "willem";
|
||||
|
||||
sshAuthorizedKeyFiles = [./sshpubkeys/willem-nixbox ./sshpubkeys/willem-thinkpad ./sshpubkeys/willem-zeus];
|
||||
}
|
||||
|
|
1
common/sshpubkeys/willem-nixbox
Normal file
1
common/sshpubkeys/willem-nixbox
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGFprwUFAmOqWlUtRkpGMAQJs6zJVesYIstXVLL3yjse willem@nixbox
|
1
common/sshpubkeys/willem-thinkpad
Normal file
1
common/sshpubkeys/willem-thinkpad
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGe3g5Fuw+jcj+KMeV3cLJPkoBxUogqTtC3Hg7hMj8py willem@thinkpad
|
1
common/sshpubkeys/willem-zeus
Normal file
1
common/sshpubkeys/willem-zeus
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBx1z962nl87rmOk/vw3EBSgqU/VlCqON8zTeLHQcSBp willem@zeus
|
|
@ -3,6 +3,7 @@
|
|||
../../common/system.nix
|
||||
../modules/nix/link-inputs.nix
|
||||
../modules/nix/use-flake-pkgs.nix
|
||||
../users/willem/base.nix
|
||||
];
|
||||
|
||||
nix = {
|
||||
|
|
5
nixos/users/willem/base.nix
Normal file
5
nixos/users/willem/base.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{globals, ...}: {
|
||||
users.users.willem = {
|
||||
openssh.authorizedKeys.keyFiles = globals.sshAuthorizedKeyFiles;
|
||||
};
|
||||
}
|
|
@ -1,16 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{...}: {
|
||||
imports = [./base.nix];
|
||||
users.users.willem = {
|
||||
shell = lib.mkDefault pkgs.zsh;
|
||||
isNormalUser = true;
|
||||
extraGroups = ["networkmanager" "wheel" "video" "udev"];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBx1z962nl87rmOk/vw3EBSgqU/VlCqON8zTeLHQcSBp willem@zeus"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGFprwUFAmOqWlUtRkpGMAQJs6zJVesYIstXVLL3yjse willem@nixbox"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGe3g5Fuw+jcj+KMeV3cLJPkoBxUogqTtC3Hg7hMj8py willem@thinkpad"
|
||||
];
|
||||
isNormalUser = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue