mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
move ssh keys
This commit is contained in:
parent
439d8df618
commit
4643c9d6de
3 changed files with 8 additions and 9 deletions
|
@ -47,6 +47,7 @@
|
||||||
{
|
{
|
||||||
lib = {
|
lib = {
|
||||||
gen-ssh-config = import lib/gen-ssh-config.nix lib;
|
gen-ssh-config = import lib/gen-ssh-config.nix lib;
|
||||||
|
ssh-keys = import lib/ssh-keys.nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosModules = mods // { default.imports = builtins.attrValues mods; };
|
nixosModules = mods // { default.imports = builtins.attrValues mods; };
|
||||||
|
|
6
lib/ssh-keys.nix
Normal file
6
lib/ssh-keys.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIqWHzIXaF88Y8+64gBlLbZ5ZZcLl08kTHG1clHd7gaq desktop"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJlMPWSVyDNAvXYtpXCI/geCeUEMbL9Nthm9B0zg1sIy sean@hp"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDuuBHq3x28cdQ0JWAZ0R+2rVlRoPnA+MOvpdF5rraGp sean@lenny"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE59uvHtxmdjqMaKyPiKLdiwfu0i59iFczrbGY0t6Oed sean@levi"
|
||||||
|
]
|
|
@ -1,12 +1,4 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
|
||||||
keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIqWHzIXaF88Y8+64gBlLbZ5ZZcLl08kTHG1clHd7gaq desktop"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJlMPWSVyDNAvXYtpXCI/geCeUEMbL9Nthm9B0zg1sIy sean@hp"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDuuBHq3x28cdQ0JWAZ0R+2rVlRoPnA+MOvpdF5rraGp sean@lenny"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE59uvHtxmdjqMaKyPiKLdiwfu0i59iFczrbGY0t6Oed sean@levi"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
users.users.sean = {
|
users.users.sean = {
|
||||||
uid = 2000;
|
uid = 2000;
|
||||||
|
@ -20,7 +12,7 @@ in
|
||||||
"wheel"
|
"wheel"
|
||||||
"wireshark"
|
"wireshark"
|
||||||
];
|
];
|
||||||
openssh.authorizedKeys = { inherit keys; };
|
openssh.authorizedKeys.keys = import ../lib/ssh-keys.nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [ "e /home/sean/Downloads - - - 9d" ];
|
systemd.tmpfiles.rules = [ "e /home/sean/Downloads - - - 9d" ];
|
||||||
|
|
Loading…
Reference in a new issue