Some people define a Gaussian random variable as a random variable that has a Gaussian p.d.f., which is defined (for the univariate case) as
$$ {\displaystyle f(x)={\frac {1}{\sigma {\sqrt {2\pi }}}}e^{-{\frac {1}{2}}\left({\frac {x-\mu }{\sigma }}\right)^{2}}} $$
Now, this is fine, but $f$ above is not the Gaussian random variable, or is it? A random variable must take values from the sample space $\Omega$ to measurable space, but isn't the Gaussian p.d.f. defined from $\mathbb{R}$ to $\mathbb{R}$? So, what is the formal definition of a Gaussian random variable (i.e. do not tell me that it's a random variable with p.d.f. $f$). I want to know how it is formally defined. For example, a Bernoulli r.v. is defined as
$$ {\displaystyle Y(\omega )={\begin{cases}1,&{\text{if }}\omega ={\text{heads}},\\[6pt]0,&{\text{if }}\omega ={\text{tails}}.\end{cases}}} $$
What is the equivalent definition of a Gaussian r.v.?
I am asking this question after having asked these ones: Can we really compose random variables and probability density functions? and Why is the exact relationship between a Gaussian p.d.f. and its associated probability measure and random variable?.