mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 03:37:18 +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";
|
timezone = "America/Vancouver";
|
||||||
|
|
||||||
username = "willem";
|
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
|
../../common/system.nix
|
||||||
../modules/nix/link-inputs.nix
|
../modules/nix/link-inputs.nix
|
||||||
../modules/nix/use-flake-pkgs.nix
|
../modules/nix/use-flake-pkgs.nix
|
||||||
|
../users/willem/base.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
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,
|
imports = [./base.nix];
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
users.users.willem = {
|
users.users.willem = {
|
||||||
shell = lib.mkDefault pkgs.zsh;
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = ["networkmanager" "wheel" "video" "udev"];
|
extraGroups = ["networkmanager" "wheel" "video" "udev"];
|
||||||
openssh.authorizedKeys.keys = [
|
isNormalUser = true;
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBx1z962nl87rmOk/vw3EBSgqU/VlCqON8zTeLHQcSBp willem@zeus"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGFprwUFAmOqWlUtRkpGMAQJs6zJVesYIstXVLL3yjse willem@nixbox"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGe3g5Fuw+jcj+KMeV3cLJPkoBxUogqTtC3Hg7hMj8py willem@thinkpad"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue