mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 02:13:55 -05:00
nixos/users: add morgan
This commit is contained in:
parent
4b44917e2d
commit
05f8facf2e
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
./aly
|
||||
./dustin
|
||||
./morgan
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
|
|
16
nixosModules/users/morgan/default.nix
Normal file
16
nixosModules/users/morgan/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue