42 current 2025-10-05 09:48:02 25.05.20251001.5b5be50 6.12.49 *

This commit is contained in:
2025-10-05 09:48:30 -05:00
parent b145d407cc
commit dc1b79e4dc
3 changed files with 55 additions and 48 deletions

View File

@@ -1,10 +1,12 @@
{ config, lib, pkgs, ... }:
let
cfg = config.users.blake;
in
{
options = {
users.blake.enable = lib.mkEnableOption "enable blake user";
users.blake.username = lib.mkOption {
options.users.blake = {
enable = lib.mkEnableOption "enable blake user";
username = lib.mkOption {
default = "blake";
description = ''
username
@@ -13,9 +15,9 @@
};
config = lib.mkIf config.users.blake.enable {
config = lib.mkIf cfg.enable {
# create blake user
users.users.${config.users.blake.username} = {
users.users.${cfg.username} = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "docker" ]; # Enable sudo for the user.
uid = 1000;