dots/hosts/orion/modules/users.nix
Price Hiller 355dbf5a9f
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m5s
fix(nix/host/orion): add price to keyd group
2024-05-29 11:29:27 -05:00

34 lines
983 B
Nix

{ pkgs, config, ... }:
{
security.sudo.wheelNeedsPassword = false;
users.groups.price = { };
users.mutableUsers = false;
users.users = {
root.hashedPasswordFile = config.age.secrets.users-root-pw.path;
price = {
isNormalUser = true;
extraGroups = [ "wheel" "keyd" ];
group = "price";
shell = pkgs.zsh;
createHome = true;
hashedPasswordFile = config.age.secrets.users-price-pw.path;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOkWsSntg1ufF40cALcIBA7WZhiU/f0cncqq0pcp+DZY openpgp:0x15993C90"
];
};
};
environment.persistence.ephemeral.directories = [
{
directory = "/home/price";
user = "price";
group = "${config.users.users.price.group}";
mode = "${config.users.users.price.homeMode}";
}
];
environment.persistence.ephemeral.users = {
root = {
home = (config.users.users.root.home);
files = [ ".bash_history" ];
};
};
}