{ config, lib, ... }: let cfg = config.nmasur.profiles.base; in { options.nmasur.profiles.base.enable = lib.mkEnableOption "base Linux config"; config = lib.mkIf cfg.enable { # Allows us to declaritively set password users.mutableUsers = false; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.${config.user} = { # Create a home directory for human user isNormalUser = true; # Automatically create a password to start hashedPassword = config.passwordHash; extraGroups = [ "wheel" # Sudo privileges ]; }; }; }