hosts/dunamis: add userborn

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-04-30 00:33:56 +03:00
parent 3bf0d20c63
commit 86ea201653
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@
fwupd.enable = true;
openssh.enable = true;
syncthing.openDefaultPorts = true;
userborn.enable = true;
dnscrypt-proxy2 = {
enable = true;
settings = {

View File

@ -6,6 +6,7 @@
}: let
inherit (config.sops) secrets;
inherit (inputs) mysecrets;
sshKeys = f: "${mysecrets}/ssh/user/id_${f}_ed25519.pub";
in {
nix.settings.trusted-users = ["user" "nix-ssh"];
users.mutableUsers = false;
@ -15,7 +16,7 @@ in {
extraGroups = ["wheel" "video" "libvirtd" "dialout"];
isNormalUser = true;
shell = pkgs.fish;
openssh.authorizedKeys.keyFiles = map (f: "${mysecrets}/ssh/user/id_${f}_ed25519.pub") [
openssh.authorizedKeys.keyFiles = map sshKeys [
"dunamis"
"eldrid"
"sarien"