Scripts In Any Language With Nix Writers | NixOS Builders & Writers

  Рет қаралды 8,206

Vimjoyer

Vimjoyer

12 күн бұрын

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.
Discord server: / discord
Donations: ko-fi.com/vimjoyer
Nix writers in nixpkgs: github.com/NixOS/nixpkgs/blob...
This video was sponsored by Brilliant.

Пікірлер: 40
@vimjoyer
@vimjoyer 10 күн бұрын
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.
@mixolydianmel
@mixolydianmel 10 күн бұрын
Honey, a new vimjoyer video just dropped, time to get even more esoteric about how you treat computing!
@vasilypustovoit4091
@vasilypustovoit4091 10 күн бұрын
Yay, Vimjoyer got a sponsorship! Congrats!
@vimjoyer
@vimjoyer 10 күн бұрын
Never thought this moment would come
@angeldude101
@angeldude101 10 күн бұрын
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.
@kernelpanic_init1
@kernelpanic_init1 2 күн бұрын
Ordinary People: Nix doesn't have good documentation *crying intensifies* Vimjoyer: I am the documentation.
@scytheluna
@scytheluna 12 күн бұрын
omg i just switched to nix last night and im greeted by a new vimjoyer video! excited to continue learning!!
@lexsaito1189
@lexsaito1189 10 күн бұрын
What DE are you using?
@scytheluna
@scytheluna 10 күн бұрын
@@lexsaito1189 kde plasma
@scytheluna
@scytheluna 7 күн бұрын
@@lexsaito1189 im using kde
@petrpechkurov3095
@petrpechkurov3095 2 күн бұрын
God bless you, dear Vimjoyer for this treesitter highlight thing!!
@liesdamnlies3372
@liesdamnlies3372 10 күн бұрын
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 10 күн бұрын
haha, you are welcome
@acobster
@acobster 8 күн бұрын
dooo itttt
@fernandoalex.
@fernandoalex. 10 күн бұрын
One of my fav channels at the moment. Keep up the great work.
@aloneer0529
@aloneer0529 10 күн бұрын
Great video as always!
@0nyr
@0nyr 10 күн бұрын
Awesome !
@emilnordgard5228
@emilnordgard5228 10 күн бұрын
YOOO SPONSORED!
@user-xd5gd4pc9h
@user-xd5gd4pc9h 10 күн бұрын
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 10 күн бұрын
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 8 күн бұрын
@@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 10 күн бұрын
Дякую!
@TheNathan724
@TheNathan724 9 күн бұрын
can you provide a simple example of using writeShellApplication and using them without adding it to the systemPackages ?
@vimjoyer
@vimjoyer 9 күн бұрын
Wrap it with parentheses, and use it like any other nix package
@geryz7549
@geryz7549 10 күн бұрын
Does inline language highlighting work in Emacs Nix-mode?
@vimjoyer
@vimjoyer 10 күн бұрын
It's built into Nix Treesitter grammar, so yeah, it should
@THEMithrandir09
@THEMithrandir09 10 күн бұрын
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 10 күн бұрын
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 10 күн бұрын
@@vimjoyer True. It clearly is very useful and a great option to know about :)
@kfove7347
@kfove7347 4 күн бұрын
how about push video about devenv witch a good tool for setup env with nix
@vimjoyer
@vimjoyer 4 күн бұрын
I am using devenv quite a lot, and I do want to make a video about it, but I first want to wait until the rust rewrite gets a bit more features
@user-to9hv8tp5k
@user-to9hv8tp5k 10 күн бұрын
If you enjoy this video
@nathanp3366
@nathanp3366 10 күн бұрын
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 10 күн бұрын
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 10 күн бұрын
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 10 күн бұрын
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 :)
@M11K3AS
@M11K3AS 10 күн бұрын
cargo install cargo-mommy
@M11K3AS
@M11K3AS 10 күн бұрын
my bad this is not kitty
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel
Рет қаралды 85 М.
`const` was a mistake
31:50
Theo - t3․gg
Рет қаралды 125 М.
Wait for the last one! 👀
00:28
Josh Horton
Рет қаралды 131 МЛН
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 99 МЛН
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 30 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 62 МЛН
Revolutionize Your Desktop With AGS | Easiest Wayland Widgets
10:15
Ultimate NixOS Guide | Flakes | Home-manager
15:30
Vimjoyer
Рет қаралды 118 М.
Don't Model the Problem
14:32
David Hart
Рет қаралды 12 М.
I Tried Turning Games Into Text
18:18
Acerola
Рет қаралды 185 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 923 М.
Async Rust Is A Bad Language | Prime Reacts
28:46
ThePrimeTime
Рет қаралды 89 М.
I was WRONG! This is the BEST Package Manager.
10:25
Chris Titus Tech
Рет қаралды 135 М.
Nix Language Explained
8:54
Vimjoyer
Рет қаралды 14 М.
Zig for Impatient Devs
9:48
Isaac Harris-Holt
Рет қаралды 70 М.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,5 МЛН
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,1 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,6 МЛН
GamePad İle Bisiklet Yönetmek #shorts
0:26
Osman Kabadayı
Рет қаралды 392 М.
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 4,7 МЛН