From f8b65eb1df3cacb1027c60cf299405ab3e8b96c2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 30 Apr 2018 15:35:49 +0200 Subject: SSH keys --- odin.nix | 2 +- users/gkleen.nix | 2 -- users/keys/gkleen-hel-rsa.pub | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 users/keys/gkleen-hel-rsa.pub diff --git a/odin.nix b/odin.nix index 035293f9..21352a7c 100644 --- a/odin.nix +++ b/odin.nix @@ -29,7 +29,7 @@ enable = true; ssh = { enable = true; - authorizedKeys = map builtins.readFile config.users.users."root".openssh.authorizedKeys.keyFiles; + authorizedKeys = [ (builtins.readFile ./users/keys/gkleen-hel-rsa.pub) ]; }; }; diff --git a/users/gkleen.nix b/users/gkleen.nix index 5fb90bb0..be52116b 100644 --- a/users/gkleen.nix +++ b/users/gkleen.nix @@ -9,8 +9,6 @@ shell = "/run/current-system/sw/bin/zsh"; isNormalUser = true; openssh.authorizedKeys.keyFiles = [ - keys/gkleen-skadhi.pub - keys/gkleen-vali.pub keys/gkleen-hel.pub ]; hashedPassword = "$6$rounds=500000$dOMgCU7DAk$yQFYGOURTEt12387LIYBnFKSWmtwXMUk1LJWnV0m7OFt.y2TnxQn2abdGA5dhwG9EmMB5wZGXf4J5F71c746C/"; diff --git a/users/keys/gkleen-hel-rsa.pub b/users/keys/gkleen-hel-rsa.pub new file mode 100644 index 00000000..58ddc724 --- /dev/null +++ b/users/keys/gkleen-hel-rsa.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDc6L8DsDw1Y/dS4nlVP+YTQXA2bHu6XFARFHy81CHvoW9RLo1mi6IpYShsRXHKYGYvKTgdF61SrSJPoMPRG4RP+p7JASN0glCYJIyEfQjKKc7dcw2iO8NJ6NC2gLlAvk/0YuBPCkXz/PTqmb/BO/XszRt/l2k6LFAz9mNma4b44k2LFDRwyEhlO8ri7vlnhcWDaw2bC8Lp/+WnfeaFa+L15tQXL+s5ri9i9PwMpC0jlSJ6IAJNUiBjtotvr/uLXWf/wbfrUIqFNt1vwEEaKE6LK7dfhuvznbA6L1xq7UtT6t5G6kwRvu0Tu1E1Ek6OiyXo34K/qwFbE+hTH5CjzOfmg6jF7LUkfR2h08tcJ6TbvUEkpBxmpwDBWWcr9rpu4FId6bz9+59QVduLxIN39s9ezddUCFIXuaSbO6zO98NMknG2o6TBtRzAzjeK84mM5A/Xga4oqJAo7jtDZ+XyftJn5TsppxvhxXJLHuAo/pwYqwPTOq6tQF7F58ejoJI8iF3ha228lZyGh1OApxg+fBh5DkRCG6A8hJbx71QVnifHr0y2mnPGZkZnry+GN+tB71K3ddixf1ULNLUJgizvNC/AuvECka0kV+PRC5ot/TN3XSE5yjCYl83KFy0XJ4Iq/9PJ9ZM3p+kEePltyfN0fHRk+qXEwGfgdRkMo+821p5t6w== gkleen@hel -- cgit v1.2.3