nix/user/Voronind.nix

36 lines
602 B
Nix
Raw Permalink Normal View History

{
config,
lib,
secret,
...
}:
let
cfg = config.user;
in
{
options.user.voronind = lib.mkEnableOption "voronind.";
2024-06-25 04:04:39 +03:00
config = lib.mkIf cfg.voronind {
home.nixos.users = [
{
homeDirectory = "/home/voronind";
username = "voronind";
}
];
users.users.voronind = {
createHome = true;
description = "Dmitry Voronin";
hashedPassword = secret.hashedPassword;
isNormalUser = true;
uid = 1000;
extraGroups = [
"input"
"keyd"
"libvirtd"
"networkmanager"
"video"
];
};
};
}