sourcephile
/
git
/
julm
/
julm-nix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56523a7
)
oignon: enable NixOS switch through ssh
author
Julien Moutinho
<julm+julm-nix@sourcephile.fr>
Fri, 7 Oct 2022 11:11:48 +0000
(13:11 +0200)
committer
Julien Moutinho
<julm+julm-nix@sourcephile.fr>
Mon, 10 Oct 2022 11:48:02 +0000
(13:48 +0200)
hosts/oignon.nix
patch
|
blob
|
history
diff --git
a/hosts/oignon.nix
b/hosts/oignon.nix
index be9132d1dd509ddd1989e41aab4e0ca613efe859..e55df74ae1ba07a7898f2ec150b7f15ce39eca5d 100644
(file)
--- a/
hosts/oignon.nix
+++ b/
hosts/oignon.nix
@@
-25,6
+25,11
@@
home-manager.users.julm = {
systemd.services.home-manager-julm.postStart = ''
${pkgs.nix}/bin/nix-env --delete-generations +1 --profile /nix/var/nix/profiles/per-user/julm/home-manager
'';
+users.users.root = {
+ openssh.authorizedKeys.keys = map lib.readFile [
+ ../private/shared/ssh/julm/oignon.pub
+ ];
+};
users.users.julm = {
isNormalUser = true;
uid = 1000;