Add module to configure sshd

This commit is contained in:
Pim Kunis 2024-11-09 16:54:33 +01:00
parent 14e269c02c
commit 59b58faeb5
4 changed files with 50 additions and 5 deletions

View file

@ -1,4 +1,8 @@
{lib, ...}: {
{
config,
lib,
...
}: {
config = {
pim = {
cinnamon.enable = true;
@ -6,8 +10,15 @@
facter.reportPath = ./facter.json;
networking.hostName = "gamepc";
users.users.pim.password = "";
users.users.root.password = "";
services.openssh.enable = true;
users.users = {
root.password = "";
pim = {
openssh.authorizedKeys.keys = config.pim.ssh.keys.pim;
password = "";
};
};
boot.loader.grub = {
enable = true;