nixos/users: add morgan

This commit is contained in:
Aly Raffauf 2024-06-14 13:39:01 -04:00
parent 4b44917e2d
commit 05f8facf2e
3 changed files with 24 additions and 1 deletions

View file

@ -261,6 +261,13 @@
type = lib.types.str;
};
};
morgan = {
enable = lib.mkEnableOption "Morgan's user.";
password = lib.mkOption {
description = "Hashed password for morgan.";
type = lib.types.str;
};
};
};
};
};

View file

@ -7,9 +7,9 @@
...
}: {
imports = [
inputs.home-manager.nixosModules.home-manager
./aly
./dustin
./morgan
];
home-manager = {

View file

@ -0,0 +1,16 @@
{
inputs,
pkgs,
lib,
config,
...
}: {
config = lib.mkIf config.alyraffauf.users.morgan.enable {
users.users.morgan = {
description = "Morgan Tamayo";
extraGroups = ["networkmanager" "wheel" "docker" "libvirtd" "video"];
hashedPassword = config.alyraffauf.users.morgan.password;
isNormalUser = true;
};
};
}