nixos-config/config/users/darkkirb.nix

29 lines
916 B
Nix
Raw Normal View History

2022-04-13 10:29:06 +00:00
{ config, ... }: {
users.users.darkkirb = {
createHome = true;
description = "Charlotte 🦝 Delenk";
extraGroups = [
"wheel"
2022-04-28 17:49:31 +00:00
"input"
];
group = "users";
2022-01-15 20:12:12 +00:00
home = "/home/darkkirb";
2022-01-14 10:23:43 +00:00
isNormalUser = true;
2022-01-15 20:12:12 +00:00
uid = 1000;
openssh.authorizedKeys.keys = [
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIDXQlfvRUm/z6eP1EjsajIbMibkq9n+ymlbBi7NFiOuaAAAABHNzaDo= ssh:"
];
2022-04-13 10:29:06 +00:00
passwordFile = config.sops.secrets."password/darkkirb".path;
};
2022-01-19 14:09:42 +00:00
sops.secrets."email/lotte@chir.rs" = { owner = "darkkirb"; };
sops.secrets."email/mdelenk@hs-mittweida.de" = { owner = "darkkirb"; };
2022-04-13 10:29:06 +00:00
sops.secrets."password/darkkirb" = {
neededForUsers = true;
};
2022-05-02 11:56:16 +00:00
services.postgresql.ensureDatabases = [ "darkkirb" ];
services.postgresql.ensureUsers = [{
name = "darkkirb";
ensurePermissions = { "DATABASE darkkirb" = "ALL PRIVILEGES"; };
}];
}