Nix Language Explained
8:54
8 ай бұрын
Coolest Wayland Screenshot Tools
4:42
Using Nix to Declare Your Browser!
3:51
Пікірлер
@ffee_machine
@ffee_machine 13 сағат бұрын
In the file at 1:01, shouldn't `nixpkgs.lib.nixosSystem` be `pkgs.lib.nixosSystem`? Otherwise, the variable `pkgs` which is defined in the `let` block is never used.
@daesk
@daesk 17 сағат бұрын
so basically I can fresh install nixos, apply an configuration file and have everything I need to start using my machine?
@vimjoyer
@vimjoyer 17 сағат бұрын
Yes
@daesk
@daesk 14 сағат бұрын
@@vimjoyer well you just convinced me to use nixOS lol gonna install it on my secondary PC to see how it goes. thanks!
@DooMWhite
@DooMWhite Күн бұрын
Amazing content, just what I wanted to understand.
@DooMWhite
@DooMWhite 19 сағат бұрын
Just a thing, I tried using cp $src/hello-world, but that didn't work, cuz cp needed "" in the source part, how do I fix that? I tried using "$src/hello-world" and "${src}/hello-world", but that wouldn't work.
@TheMotorcycleBoy-pe2eg
@TheMotorcycleBoy-pe2eg 2 күн бұрын
I got some strange yellow warnings after installation...
@AnkarEnrager203
@AnkarEnrager203 3 күн бұрын
this works on cromebooks?
@vimjoyer
@vimjoyer 3 күн бұрын
This doesn't work anywhere anymore. Riots invasive anticheat put an end to League anywhere other than windows and macos.
@gnom-om
@gnom-om 3 күн бұрын
Arch is much better
@vimjoyer
@vimjoyer 3 күн бұрын
hell nah
@arcstur
@arcstur 4 күн бұрын
NixOS is allowing me to test Hyprland while still having GNOME as the default: I've just created a specialization. It's impressive how easy it is to do those things. Thanks for your videos on Hyprland.
@JPKB36
@JPKB36 4 күн бұрын
integrating stylix into waybar
@vimjoyer
@vimjoyer 4 күн бұрын
Interpolate variables into css
@TheNathan724
@TheNathan724 5 күн бұрын
can you provide a simple example of using writeShellApplication and using them without adding it to the systemPackages ?
@vimjoyer
@vimjoyer 5 күн бұрын
Wrap it with parentheses, and use it like any other nix package
@Miinui0
@Miinui0 5 күн бұрын
Can you do a vid where your going to deleting list of generations with specific including home manager garbage also clean garbage from store
@Danielo515
@Danielo515 5 күн бұрын
Can I have it in macos ?
@vimjoyer
@vimjoyer 5 күн бұрын
Absolutely. You can use home-manager anywhere nix is supported
@JasonYor
@JasonYor 5 күн бұрын
Gotta trust in that helmet
@Skyb0rg
@Skyb0rg 5 күн бұрын
Instead of using sed to remove quotes, you can use `jq --raw-output`.
@user-xd5gd4pc9h
@user-xd5gd4pc9h 5 күн бұрын
2 quick questions: 1. What if using zsh in stead of bash when using WriteShellApplication? Thank you! 2. Can define shell env be used repeately? Or using other method such as devbox, conda or even in container? Thank you twice!
@vimjoyer
@vimjoyer 5 күн бұрын
writeShellScriptBin uses bash, but you can create your own writer that uses Zsh instead. I didn't quite get your second question, but if you want to create a dev shell with packages and environment variables, you can use regular nix shells or devenv. They can be used as many times as you want.
@vaisakhkm783
@vaisakhkm783 4 күн бұрын
@@vimjoyer 2nd q, atleast i assume is, whether we can use writers to replace simple tools or bashscripts we have in a project within a dev environments.. also i have a question, in your april fools video, it seemed like you are saying using nix shell nixpkgs\#python312 everytime getting a shell is dumb... i normally don't globally install any langs, but just do that... so i can have difference version on the spot.. is it a bad idea? is there any better way ?
@mkuznetsoff
@mkuznetsoff 5 күн бұрын
Дякую!
@Desperatekls
@Desperatekls 5 күн бұрын
Just last weekend I write a small script using fuzzel(like dmenu) to do power management. I'm soooo sure this should be some builders instead of runCommandNoCC to copy file to $out/bin, and I just cann't find one. Thank you man!
@james-cucumber
@james-cucumber 6 күн бұрын
Pumped to see otter-nvim getting some love! Have you found a good way to get nixfmt to play nice with it? In my experience, otter only works with comments declaring the language type when the string starts on the same line as the comment, which nixfmt changes But, I am pretty new to neovim and decoded to use nixvim for my first config, which may not have been the best idea for ease of troubleshooting. So this could just be an mis configuration on my end. I see nix’s treesitter grammar only recently got support for language embedding comments formatted the way nixfmt does. I am using nixos-24.05, which has this feature in its treesitter grammar. Can’t post links for fear of shadow banning, but there’s issue #179 on nixfmt’s github for reference
@emilnordgard5228
@emilnordgard5228 6 күн бұрын
YOOO SPONSORED!
@1234minecraft5678
@1234minecraft5678 6 күн бұрын
May bottles be used to run stuff like Fusion360?
@vimjoyer
@vimjoyer 6 күн бұрын
Bottles uses wine, so I guess it is your best bet to try any windows software
@M11K3AS
@M11K3AS 6 күн бұрын
cargo install cargo-mommy
@M11K3AS
@M11K3AS 6 күн бұрын
my bad this is not kitty
@nathanp3366
@nathanp3366 6 күн бұрын
Your videos get me really excited to try nixos, then I boot into my nixos vm, try to do something and hate it. I love the concept and I will stay subscribed but it seems like I am just too much of a dum dum to put these tutorials into action.
@amargasaurus5337
@amargasaurus5337 6 күн бұрын
I've been daily driving it for months and I still can't replicate most tutorials funcional programming is hard, but even so i sure don't regret spending a full week to set up my system. I'd always screw myself by dependency helling my system into oblivion and NixOS got rid of that! I even managed to setup a custom derivation that builds the game I mod for from source, and with an alias to a short bash script I can update it to the latest git commit in one word, then rebuild and shablam! NixOS does all the compiling for me.
@vimjoyer
@vimjoyer 6 күн бұрын
Don't worry, when I initially started with NixOS, I also dropped it almost immediately. You don't have to force yourself to use it, and it's not going to run away from you. Just wait until you have plenty of free time and motivation, and then try again 👍
@dinihtis
@dinihtis 6 күн бұрын
Personally I use bare-bones configuration, just to keep myself and my laptop sane and do not worry about re-creating setup if something will eventually go wrong. For now I do not use more advanced features at all, just enjoying working system :)
@THEMithrandir09
@THEMithrandir09 6 күн бұрын
Even if the tooling for this exists now, I just don't see the appeal of embedding code from one language in another, especially if that code represents a standalone script or application. I'd much rather handle my scripts like a package in one or more git repos and specify their dependencies how to build them in nix. This way people/systems not using nix can more easily use them.
@vimjoyer
@vimjoyer 6 күн бұрын
Sure, but this can be useful for writing small scripts. Sometimes you don't want to write a small script in bash, but you also don't want to start a whole project.
@THEMithrandir09
@THEMithrandir09 6 күн бұрын
@@vimjoyer True. It clearly is very useful and a great option to know about :)
@0nyr
@0nyr 6 күн бұрын
Awesome !
@angeldude101
@angeldude101 6 күн бұрын
Nix can also make C and Haskell "scripts", and yes, it's so cool that you can use compiled languages as though they were shell scripts. Honestly makes me want to try replacing NixOS's stage 1 init bash script with a statically compiled binary.
@liesdamnlies3372
@liesdamnlies3372 6 күн бұрын
I was wondering how I was gonna deal with my mess of scripts…and now I wanna not just put them in Nix but rewrite them in Rust just because…
@vimjoyer
@vimjoyer 6 күн бұрын
haha, you are welcome
@acobster
@acobster 4 күн бұрын
dooo itttt
@fernandoalex.
@fernandoalex. 6 күн бұрын
One of my fav channels at the moment. Keep up the great work.
@user-to9hv8tp5k
@user-to9hv8tp5k 6 күн бұрын
If you enjoy this video
@aloneer0529
@aloneer0529 6 күн бұрын
Great video as always!
@geryz7549
@geryz7549 6 күн бұрын
Does inline language highlighting work in Emacs Nix-mode?
@vimjoyer
@vimjoyer 6 күн бұрын
It's built into Nix Treesitter grammar, so yeah, it should
@mixolydianmel
@mixolydianmel 6 күн бұрын
Honey, a new vimjoyer video just dropped, time to get even more esoteric about how you treat computing!
@vasilypustovoit4091
@vasilypustovoit4091 6 күн бұрын
Yay, Vimjoyer got a sponsorship! Congrats!
@vimjoyer
@vimjoyer 6 күн бұрын
Never thought this moment would come
@vimjoyer
@vimjoyer 6 күн бұрын
To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/Vimjoyer/. You’ll also get 20% off an annual premium subscription.
@scytheluna
@scytheluna 7 күн бұрын
omg i just switched to nix last night and im greeted by a new vimjoyer video! excited to continue learning!!
@lexsaito1189
@lexsaito1189 6 күн бұрын
What DE are you using?
@scytheluna
@scytheluna 6 күн бұрын
@@lexsaito1189 kde plasma
@scytheluna
@scytheluna 3 күн бұрын
@@lexsaito1189 im using kde
@ymaysernameuay1113
@ymaysernameuay1113 7 күн бұрын
What am I supposed to put in ~/dotfiles? Just the flake or the entire /etc/nixos?
@parazeeknova
@parazeeknova 7 күн бұрын
Please create an advanced tutorial 🤧
@vimjoyer
@vimjoyer 7 күн бұрын
I still plan to do it
@angeltune3069
@angeltune3069 7 күн бұрын
doesnt work lmao
@vimjoyer
@vimjoyer 7 күн бұрын
try vesktop, it's better
@another-niko-pfp-holder
@another-niko-pfp-holder 10 күн бұрын
I've been considering setting up a separate system for schoolwork and this seems like a really good option! We'll see if wayland lives up to the hype
@YBWang-pi9qq
@YBWang-pi9qq 10 күн бұрын
You explain complicated concepts in such a easy way, natural Talent in teaching! Please make more such excellent videos. I finally decided to try Nixos, as a result of your videos, so helpful!
@YBWang-pi9qq
@YBWang-pi9qq 10 күн бұрын
I am using keyd a few weeks ago. and consider it is better. Please comments if I am wrong.
@vimjoyer
@vimjoyer 10 күн бұрын
Both are great
@angeldude101
@angeldude101 11 күн бұрын
Rather than an ISO image, I instead made a netboot image packaged into a UKI that now lives in my boot partition. Perhaps the craziest part is how thanks to kexec, it might be possible for me to turn this rescue image into my boot manager, since it can mount my root filesystem and access the kernels on it while GRUB cannot.
@frankhuurman3955
@frankhuurman3955 11 күн бұрын
first question I had after seeing you install vim was "how do I know when a new version of vim is out? does Nix have a service that notifies me and then I have to nixos-rebuild again?". But curious how this actually works when using Nix as a desktop.
@vimjoyer
@vimjoyer 11 күн бұрын
Rebuilding NixOS does not update it, updating is done with flakes or channels. You can check package versions on the nixos search org website, and there are special tools that allow you to see which tools received new versions after update
@frankhuurman3955
@frankhuurman3955 11 күн бұрын
@@vimjoyer Thank you! was just finding out about your other videos and those explained it a bit more in depth :)
@brianlogan4740
@brianlogan4740 11 күн бұрын
Honestly probably the simplest most matter of fact intro to Flakes I've pulled up so far. Thank you for this!
@astronomer404
@astronomer404 13 күн бұрын
Great content, keep it up.
@lukeE632
@lukeE632 13 күн бұрын
Have you managed to modularize your nixvim config and keep stylix working? I followed a blog post from Valentin Pratz about using "inputs.nixvim.legacyPackages.x86_64-linux.makeNixvimWithModule" to allow the config to span multiple files, but stylix doesn't seem to detect and theme nixvim anymore, and I can't work out how to tell it to.
@vimjoyer
@vimjoyer 10 күн бұрын
I prefer to have a separate theme for my editor, so I didn't connect my neovim to stylix
@RobFisherUK
@RobFisherUK 13 күн бұрын
Is there a way to have a secret with multiple lines? In my case, I'm trying to make an environment file with multiple environment variables. If I do a YAML multi-line string, Sops seems to replace the newlines with spaces when it decodes the secret.
@brunokoiyae
@brunokoiyae 13 күн бұрын
please bring us more content about AGS 🙏🙏
@Medan1993
@Medan1993 13 күн бұрын
At 2:02 you run sops command. Which at that point is not yet available. Should that be just added to systemPackages or just work just with rest of the configuration being done first? Also at 2:44 you are using "inputs" already inside "inputs"? For me this just generates building error: `"sops-nix" is a thunk while a ....` but ommiting it works though.
@budiardjo6610
@budiardjo6610 13 күн бұрын
i am try to read nix doc, watch some nix conference. but still couldn't achive this whole understanding.
@Simon-xi8tb
@Simon-xi8tb 13 күн бұрын
Dont i need to configure Wayland first and disable all the xserver stuff ?
@liesdamnlies3372
@liesdamnlies3372 15 күн бұрын
I still haven’t tried NixOS (though there’s a fresh VM waiting to have it installed so I can play with it). At 2:30 something hit me: I could just…do both. Right? Comment-out sync or offload parts as needed in my config, then rebuild. Except I know nothing weird should be happening with my system’s state because it’s declarative (and also less prone to my own errors). I do wonder if System76’s tools/drivers set this up by default. When I was looking at their page on how to configure for other distros, and NixOS was a one-liner…really got me curious. Edit: I…see. NixOS has a built-in way to do what I was thinking but with significantly less janky fiddling. That really does drive home how it’s just built different…I love it.
@vimjoyer
@vimjoyer 15 күн бұрын
Haha, yeah