alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
machines.barnacle: manage root shell
author
lassulus
date
1 year ago
(Jun 16, 2025, 7:53 PM CEST)
commit
2d720b17
2d720b17831bad2d15f9767f46bf78858c19e8e2
parent
f4fa399f
f4fa399fc38235bda86d6f7c9f6f48019e9b6d86
+5
-8
1 changed file
Expand all
Collapse all
Unified
Split
machines
barnacle
configuration.nix
+5
-8
machines/barnacle/configuration.nix
View file
Reviewed
···
131
131
system.primaryUser = "lassulus";
132
132
133
133
services.openssh.enable = true;
134
134
-
users.users =
135
135
-
let
136
136
-
key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDIb3uuMqE/xSJ7WL/XpJ6QOj4aSmh0Ga+GtmJl3CDvljGuIeGCKh7YAoqZAi051k5j6ZWowDrcWYHIOU+h0eZCesgCf+CvunlXeUz6XShVMjyZo87f2JPs2Hpb+u/ieLx4wGQvo/Zw89pOly/vqpaX9ZwyIR+U81IAVrHIhqmrTitp+2FwggtaY4FtD6WIyf1hPtrrDecX8iDhnHHuGhATr8etMLwdwQ2kIBx5BBgCoiuW7wXnLUBBVYeO3II957XP/yU82c+DjSVJtejODmRAM/3rk+B7pdF5ShRVVFyB6JJR+Qd1g8iSH+2QXLUy3NM2LN5u5p2oTjUOzoEPWZo7lykZzmIWd/5hjTW9YiHC+A8xsCxQqs87D9HK9hLA6udZ6CGkq4hG/6wFwNjSMnv30IcHZzx6IBihNGbrisrJhLxEiKWpMKYgeemhIirefXA6UxVfiwHg3gJ8BlEBsj0tl/HVARifR2y336YINEn8AsHGhwrPTBFOnBTmfA/VnP1NlWHzXCfVimP6YVvdoGCCnAwvFuJ+ZuxmZ3UzBb2TenZZOzwzV0sUzZk0D1CaSBFJUU3oZNOkDIM6z5lIZgzsyKwb38S8Vs3HYE+Dqpkfsl4yeU5ldc6DwrlVwuSIa4vVus4eWD3gDGFrx98yaqOx17pc4CC9KXk/2TjtJY5xmQ== lass@yubikey";
137
137
-
in
138
138
-
{
139
139
-
lassulus.openssh.authorizedKeys.keys = [ key ];
140
140
-
root.openssh.authorizedKeys.keys = [ key ];
141
141
-
};
134
134
+
users.users.lassulus.openssh.authorizedKeys.keys = [ self.keys.ssh ];
135
135
+
users.users.root.openssh.authorizedKeys.keys = [ self.keys.ssh ];
142
136
137
137
+
users.users.root.shell = pkgs.zsh;
138
138
+
users.users.root.uid = 0;
139
139
+
users.knownUsers = [ "root" ];
143
140
}