mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 13:43:56 -05:00
29 lines
688 B
Nix
29 lines
688 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
alyraffauf.user.aly = {
|
|
enable = lib.mkEnableOption "Enables Aly's user.";
|
|
password = lib.mkOption {
|
|
description = "Hashed password for user aly.";
|
|
type = lib.types.str;
|
|
};
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.alyraffauf.user.aly.enable {
|
|
users.users.aly = {
|
|
description = "Aly Raffauf";
|
|
extraGroups = ["networkmanager" "wheel" "docker" "libvirtd" "video"];
|
|
hashedPassword = config.alyraffauf.user.aly.password;
|
|
isNormalUser = true;
|
|
linger = true;
|
|
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
|
|
};
|
|
};
|
|
}
|