feat: move to single-user config

This commit is contained in:
2026-04-26 18:08:48 +02:00
parent 75ba00929e
commit dba24ce5f3
27 changed files with 160 additions and 300 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ in
flake.modules.nixos.caddy = {
services.caddy = {
enable = true;
email = repo.contact.email;
email = repo.account.primaryEmail.address;
openFirewall = true;
};
};
+6 -6
View File
@@ -1,4 +1,7 @@
{ ... }:
{ config, ... }:
let
account = config.repo.account;
in
{
flake.modules.nixos.ssh-agent-auth = {
security.pam = {
@@ -8,10 +11,7 @@
};
flake.modules.nixos.openssh =
{
config,
...
}:
{ ... }:
{
services.openssh.openFirewall = true;
@@ -20,7 +20,7 @@
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
AllowUsers = builtins.attrNames config.meta.machine.users;
AllowUsers = [ account.name ];
};
};
};