Cheatsheet: Difference between revisions
imported>ErnstderLage m add load none flakes configuration |
imported>ErnstderLage m add flake repl load |
||
Line 8: | Line 8: | ||
<syntaxHighlight lang="console"> | <syntaxHighlight lang="console"> | ||
$ nix repl | $ nix repl | ||
nix-repl> :l <nixpkgs> | nix-repl> :l <nixpkgs> | ||
Added 7486 variables. | Added 7486 variables. | ||
nix-repl> "${xorg.libXtst}" | nix-repl> "${xorg.libXtst}" | ||
"/nix/store/nlpnx21yjdjx2ii7ln4kcmbm0x1vy7w9-libXtst-1.2.3" | "/nix/store/nlpnx21yjdjx2ii7ln4kcmbm0x1vy7w9-libXtst-1.2.3" | ||
nix-repl> :lf ./configuration.nix # as flakes way for a local file | |||
# load nixos configuration from a nix file | # load nixos configuration from a nix file |