- 47
- 1 537 931
Vimjoyer
เข้าร่วมเมื่อ 9 ก.ค. 2022
Make Your Code Better With Pipes
Discord server: discord.gg/AqHbaeK43b
Donations: ko-fi.com/vimjoyer
Donations: buymeacoffee.com/vimjoyer
A video about nix language and the new pipe operator.
Donations: ko-fi.com/vimjoyer
Donations: buymeacoffee.com/vimjoyer
A video about nix language and the new pipe operator.
มุมมอง: 6 884
วีดีโอ
Easiest Way To Write Nix | Code Editor Setup
มุมมอง 10K28 วันที่ผ่านมา
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.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer Donations: buymeacoffee.com/vimjoyer code from the video: github.com/vimjoyer/nix-editor-setup-video This video was sponsored by Brilliant.
Nix(OS) Ecosystem Explained
มุมมอง 12Kหลายเดือนก่อน
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.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer Donations: buymeacoffee.com/vimjoyer This video was sponsored by Brilliant.
Best Way To Manage Project Dependencies | Nix Shells
มุมมอง 17K2 หลายเดือนก่อน
Discord server: discord.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer Donations 2: buymeacoffee.com/vimjoyer code from the video: github.com/vimjoyer/shells2-video flake video: th-cam.com/video/JCeYq72Sko0/w-d-xo.html
Effortless Minecraft Servers on NixOS | Simple Declarative Setup
มุมมอง 10K3 หลายเดือนก่อน
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.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer Donations 2: buymeacoffee.com/vimjoyer code from the video: github.com/vimjoyer/nixos-minecraft-server-video Also, available on: journix.dev/posts/effortless-minecraft-servers-...
Customize Nix Packages | Gentoo Experience on NixOS
มุมมอง 10K3 หลายเดือนก่อน
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.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer Donations 2: buymeacoffee.com/vimjoyer code from the video: github.com/vimjoyer/overrides-overlays-video This video was sponsored by Brilliant.
Ultimate Nix Flakes Guide
มุมมอง 31K4 หลายเดือนก่อน
Discord server: discord.gg/AqHbaeK43b Support the channel: ko-fi.com/vimjoyer Nix flakes wiki: wiki.nixos.org/wiki/Flakes Flake URL syntax examples: nix.dev/manual/nix/2.18/command-ref/new-cli/nix3-flake.html#flake-references more code coming soon, I'm going to sleep now
Scripts In Any Language With Nix Writers | NixOS Builders & Writers
มุมมอง 14K4 หลายเดือนก่อน
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.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer Nix writers in nixpkgs: github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/writers/scripts.nix This video was sponsored by Brilliant.
Revolutionize Your Desktop With AGS | Easiest Wayland Widgets
มุมมอง 22K5 หลายเดือนก่อน
Discord server: discord.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer AGS wiki: aylur.github.io/ags-docs/ AGS examples: github.com/Aylur/ags/tree/main/example/simple-bar libastal: github.com/astal-sh/libastal
Ricing Linux Has Never Been Easier | NixOS + Stylix
มุมมอง 30K6 หลายเดือนก่อน
stylix.enable = true is now required to enable stylix. Discord server: discord.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer Code text available on journix: journix.dev/posts/ricing-linux-has-never-been-easier-nixos-and-stylix/ Code from the video: github.com/vimjoyer/stylix-video Stylix book: danth.github.io/stylix/options/nixos.html
Is NixOS The Best Gaming Distro | Linux Gaming Setup
มุมมอง 36K6 หลายเดือนก่อน
Discord server: discord.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer Code from the video: github.com/vimjoyer/nixos-gaming-video
This Program Will Make Your Nix Experience Comfy | NH The Nix Helper
มุมมอง 22K7 หลายเดือนก่อน
Discord server: discord.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer Code from the video: github.com/vimjoyer/nix-helper-video
[APRIL FOOLS] Top 6 Best NixOS Tips & Tricks
มุมมอง 8K7 หลายเดือนก่อน
Discord server: discord.gg/AqHbaeK43b April fools
Modularize NixOS and Home Manager | Great Practices
มุมมอง 31K7 หลายเดือนก่อน
Discord server: discord.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer Code from the video: github.com/vimjoyer/modularize-video
Build Your Own NixOS Installer ISO
มุมมอง 10K8 หลายเดือนก่อน
Discord server: discord.gg/AqHbaeK43b Donations: ko-fi.com/vimjoyer Code from the video: github.com/vimjoyer/custom-installer-video
Custom Neovim Code Actions & Diagnostics
มุมมอง 6K8 หลายเดือนก่อน
Custom Neovim Code Actions & Diagnostics
Declare Hyprland Config With Nix Home-Manager
มุมมอง 27K9 หลายเดือนก่อน
Declare Hyprland Config With Nix Home-Manager
Nix File Fetching | fetchurl and Flakes
มุมมอง 8K10 หลายเดือนก่อน
Nix File Fetching | fetchurl and Flakes
Ultimate NixOS Guide | Flakes | Home-manager
มุมมอง 184K11 หลายเดือนก่อน
Ultimate NixOS Guide | Flakes | Home-manager
The Best Neovim Plugin | Writing Lua Snippets With Luasnip
มุมมอง 15Kปีที่แล้ว
The Best Neovim Plugin | Writing Lua Snippets With Luasnip
Custom NIX Home-Manager Modules For Personalized Setup
มุมมอง 10Kปีที่แล้ว
Custom NIX Home-Manager Modules For Personalized Setup
Custom EWW Notification Daemon: Tutorial
มุมมอง 15Kปีที่แล้ว
Custom EWW Notification Daemon: Tutorial
LF + NIX: Simple Setup for Extreme Productivity
มุมมอง 18Kปีที่แล้ว
LF NIX: Simple Setup for Extreme Productivity
Neovim and Nix home-manager: Supercharge Your Development Environment
มุมมอง 30Kปีที่แล้ว
Neovim and Nix home-manager: Supercharge Your Development Environment
Nix-colors Guide | Declaratively Rice Your Linux Desktop
มุมมอง 16Kปีที่แล้ว
Nix-colors Guide | Declaratively Rice Your Linux Desktop
I love your videos! Very glad to see you have the time and motivation to keep making them.
Absolutely love your videos. Can you give me a hint with which software you are creating the videos?
I'm using "motion canvas"
the goat
is there any way to use sops-nix for let's say git email for example? I've been searching for days and I found no other way around except running nixos with a --impure flag
Finally!
pipenjoyer
this caught me up for a while, accidentally leaving 'pkgs.<item>' on the item... (I liked seeing the word pkgs... lol) # autocomplete DOESNT WORK HERE environment.systemPackages = [ pkgs.home-manager pkgs.cowsay ] but switching to environment.systemPackages = with pkgs; [ home-manager cowsay ] works.....
6:01 references a 'nixpath' step from earlier? when in video is this earlier step?
Which nix version is required for this operator to be available?
I'm using the latest version available in the unstable branch for this video
The feature that I miss the most is adequate errors. I’m not only talking about these atrocious stack traces, the errors are just not pleasant to work with, mostly because of functional nature of nix
This video actually explains pipes the best I have ever seen. Now I act
is there an easy way to concat functions? like the haskell . operator?
not to my knowledge
wow, when I searched this in 2023 I thought they would never be added
Make your bets, what's gonna be stabilized first: pipes or flakes?
Hahaha, flakes and stabilized in the same sentence
mmh love a good pipe operator. Would be nice to see a placeholder syntax as well though. This is why in R I kept using magrittr package's pipe until we got a native placeholder. Can't pipe to a positional argument easily without it. This was simple with magrittr pipe `%>%` and `.` placeholder: `f <- \(x,y){ x / y }; x %>% f(1, .)`. Not as simple with native pipe `|>` when there was no placeholder, now it's `_`.
Scale-like underscore placeholder parameters next please
amazing video, thank you. What do you use as presentation tool? (very nice), a lot of good work
I'm using "motion canvas"
I am writing a python library in rust that will allow users to write system configs in python and it will compile into a nix file. The library is almost fully compatible with nix. I am also thinking of making lua, ruby and bash binding of the library(not yet done). I am also trying to make a lightweight "nix cli" written in rust which will make nix commands and evals much faster. It is like deno for nix. These projects are still alpha and i soon plan to release these under mit license. Please make suggestions of the features you want. I chose python as a language because i think it is the most approachable language to new users. Thanks @vimjoyer and @librephoenix for luring me into the rabbithole of nix.
Bro plz make a video on how to contribute to nixpkgs
F# mentioned 🎉
04:35 Pun intended? : ^ )
I was tired and read the title as "make your coke better with pepsi"
both versions would be true
If only we could have statically typed nix
love this channel, please keep going!
Honestly I think making Nix more readable is a critical thing to get right in order to foster more adoption. While the functional declarative simplicity is great for logical clarity it requires some up front learning to understand. I think this piping is a good example of how the functionality can remain the same but we add some syntax sugar to make it look more like declarative config and less like spaghetti code. I'm for logical simplicity though.
I still have an xmonad config somewhere, but that one has too little spaghetti instead. It's basically a write-only config because it was written in one sitting while I remembered argument counts and operator precedence.
Wait… is this a monad?
No, it’s syntactic sugar.
This is HUGE The pipe operator is so good ❄️🙌
Inspired by Gleam?
Sadly, the NixOS community has been hijacked by deranged woke individuals... 🏳️⚧️
Just like threading (first and last) in Clojure, which I use a lot. Great addition!
Yesssss
I use Rust. I like very, very long and definitely unreadable pipelines. Literally, sometimes I can write a 20-lines-long function without any semicolons! Iterator chains are very cool, as well as the fact that ifs and matches can return values. When writing in other languages I often feel pain because of not having such well-built iterators and the other things I talked about. By the way, why do your videos never get recommended to me? Literally, all other creators I watch and am subscribed to pop up on my homepage as soon as they upload a new video, but you? You never pop up in my recommendations, ever. Thank God I am in your Discord server so I can at least know when new videos get released and then go into my Subscriptions tab to find it right at the top of the feed. Do any other people have this issue? Oh, and do you by any chance upload on any other service than TH-cam? Maybe PeerTube or Odysee? If not, then please consider that! Whoa this comment is getting very long with every single edit I make. But I'd like to just quickly add a few video suggestions. Can you revisit Nixvim please? I use it for my own Neovim config and think it's highly superior to Lua configuration (except for the fact that, unlike lazy.nvim, it doesn't lazy-load packages). Or at least just make a general neovim configuration video? The other suggestion is packaging things and making develolment shells. I've been struggling A LOT to make flakes for my projects with packages, devshells and some other goodies like treefmt-nix and pre-commit-hooks.nix. I'd like to see a video (or series) about "How to use Nix with a {insert programming language here} project.". My biggest issues were with Rust (using crane), but I think I kind of figured it out... But it doesn't work as well as I'd like it to. Another suggestion js maybe talking about CI/CD? Also, have you maybe seen the project nixos-unified? I use it in my nixos/home-manager/nixvim flake and it works well... Up until it doesn't. But it has some cool goodies that make writing your flake a lot easier. If you'd like to see all the things I talked about above in action in my config, then see GGORG0/nix-config on GitHub. And here comes another suggestion - best practices to structure your nixos/home-manager config. Because mine isn't structured well and I know that... That's it. I'm not writing any more. Yes I am. Just adding that this video DOESN'T EVEN APPEAR in my watch history. I mean, like on mobile you have the "You" tab which shows your watch history. It's non-existent there. But if I click on show more, then it is in the list. TH-cam what the f??? Oh wow, I didn't know that editing a comment would remove the heart from it. Oh well...
I'd like to learn to self-host web applications using Nix and/or NixOS
Also, great video 👍
Ya i too wanted to learn this.. as a better (or worse) alternative to hosting in docker.. i have no clue how to make flakes of dbs and all
I plan to make a video about services soon, so that's probably going to help
i like the more subtle background :) the one before was a bit distracting for me
agree
Awesome video! I can't lie I was missing pipes a bit from other functional languages, awesome they're coming to Nix. I can't lie, I was doing that let expression variable nonsense a bit for some of my more complex Nix modules.
Yes, I too have already found a ton of places where I could use them in my configuration
@@vimjoyer Do you have your config in a public repo btw? I'd love to take a look. :)
@@bastiana3611 Yes, it's on github:vimjoyer/nixconf
Crazy boy and Crazy pipes
crazy mad insane
Vimjoyer knows how to handle that heavy pipe!
Thanks for the video!
Noice!
Too little metal pipe sound effects
Only 2. I initially wanted to add it every time I said pipe, but didn't want to overdo it
@@vimjoyerfeared your helmet fell off
vimjoyer pipeline
10k subscribers? 5:29
Yeah, I need to update that
He didn't do rebuild-switch after editing config on youtube
Based pipe wrench
New Video, Let's goooo. Edit: I want and need this feature.
YOU! SAVE MY DAY!!!
How to run Riot Vanguard on NixOS?😅
Impossible
man... i wish i did it on a fresh install of nix. i get the home-manager error which needs me to remove the original files inthe directories for the switch to be done successfully.
Use `home-manager.backupFileExtension = ".backup";` to make home-manager backup the original files and rebuild successfully
What are the difference between the home.nix file and flake.nix file we created in the /etc/nixos/ directory, and the home.nix and flake.nix file that got created in the home/user/.config/home-manager/ directory? Which ones should we be using?
You should use the home.nix that your configuration is referencing, so the one in /etc/nixos directory. The one created in /home/user/.config/home-manager is generated as a standalone version, meant to be used separately from nixos.
BetterDiscord ?
Hi, what about when you already have a nix configuration existed and want to try the dev env? Do you add the mkShell package inside the modules?
You can have as many flakes as you want, so just create some new directory and create a dev env there. Alternatively, you can add your devenv as another input of your primary flake, or even create a separate shell.nix w/o a flake somewhere.