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.
@daesk17 сағат бұрын
so basically I can fresh install nixos, apply an configuration file and have everything I need to start using my machine?
@vimjoyer17 сағат бұрын
Yes
@daesk14 сағат бұрын
@@vimjoyer well you just convinced me to use nixOS lol gonna install it on my secondary PC to see how it goes. thanks!
@DooMWhiteКүн бұрын
Amazing content, just what I wanted to understand.
@DooMWhite19 сағат бұрын
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-pe2eg2 күн бұрын
I got some strange yellow warnings after installation...
@AnkarEnrager2033 күн бұрын
this works on cromebooks?
@vimjoyer3 күн бұрын
This doesn't work anywhere anymore. Riots invasive anticheat put an end to League anywhere other than windows and macos.
@gnom-om3 күн бұрын
Arch is much better
@vimjoyer3 күн бұрын
hell nah
@arcstur4 күн бұрын
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.
@JPKB364 күн бұрын
integrating stylix into waybar
@vimjoyer4 күн бұрын
Interpolate variables into css
@TheNathan7245 күн бұрын
can you provide a simple example of using writeShellApplication and using them without adding it to the systemPackages ?
@vimjoyer5 күн бұрын
Wrap it with parentheses, and use it like any other nix package
@Miinui05 күн бұрын
Can you do a vid where your going to deleting list of generations with specific including home manager garbage also clean garbage from store
@Danielo5155 күн бұрын
Can I have it in macos ?
@vimjoyer5 күн бұрын
Absolutely. You can use home-manager anywhere nix is supported
@JasonYor5 күн бұрын
Gotta trust in that helmet
@Skyb0rg5 күн бұрын
Instead of using sed to remove quotes, you can use `jq --raw-output`.
@user-xd5gd4pc9h5 күн бұрын
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!
@vimjoyer5 күн бұрын
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.
@vaisakhkm7834 күн бұрын
@@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 ?
@mkuznetsoff5 күн бұрын
Дякую!
@Desperatekls5 күн бұрын
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-cucumber6 күн бұрын
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
@emilnordgard52286 күн бұрын
YOOO SPONSORED!
@1234minecraft56786 күн бұрын
May bottles be used to run stuff like Fusion360?
@vimjoyer6 күн бұрын
Bottles uses wine, so I guess it is your best bet to try any windows software
@M11K3AS6 күн бұрын
cargo install cargo-mommy
@M11K3AS6 күн бұрын
my bad this is not kitty
@nathanp33666 күн бұрын
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.
@amargasaurus53376 күн бұрын
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.
@vimjoyer6 күн бұрын
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 👍
@dinihtis6 күн бұрын
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 :)
@THEMithrandir096 күн бұрын
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.
@vimjoyer6 күн бұрын
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.
@THEMithrandir096 күн бұрын
@@vimjoyer True. It clearly is very useful and a great option to know about :)
@0nyr6 күн бұрын
Awesome !
@angeldude1016 күн бұрын
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.
@liesdamnlies33726 күн бұрын
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…
@vimjoyer6 күн бұрын
haha, you are welcome
@acobster4 күн бұрын
dooo itttt
@fernandoalex.6 күн бұрын
One of my fav channels at the moment. Keep up the great work.
@user-to9hv8tp5k6 күн бұрын
If you enjoy this video
@aloneer05296 күн бұрын
Great video as always!
@geryz75496 күн бұрын
Does inline language highlighting work in Emacs Nix-mode?
@vimjoyer6 күн бұрын
It's built into Nix Treesitter grammar, so yeah, it should
@mixolydianmel6 күн бұрын
Honey, a new vimjoyer video just dropped, time to get even more esoteric about how you treat computing!
@vasilypustovoit40916 күн бұрын
Yay, Vimjoyer got a sponsorship! Congrats!
@vimjoyer6 күн бұрын
Never thought this moment would come
@vimjoyer6 күн бұрын
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.
@scytheluna7 күн бұрын
omg i just switched to nix last night and im greeted by a new vimjoyer video! excited to continue learning!!
@lexsaito11896 күн бұрын
What DE are you using?
@scytheluna6 күн бұрын
@@lexsaito1189 kde plasma
@scytheluna3 күн бұрын
@@lexsaito1189 im using kde
@ymaysernameuay11137 күн бұрын
What am I supposed to put in ~/dotfiles? Just the flake or the entire /etc/nixos?
@parazeeknova7 күн бұрын
Please create an advanced tutorial 🤧
@vimjoyer7 күн бұрын
I still plan to do it
@angeltune30697 күн бұрын
doesnt work lmao
@vimjoyer7 күн бұрын
try vesktop, it's better
@another-niko-pfp-holder10 күн бұрын
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-pi9qq10 күн бұрын
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-pi9qq10 күн бұрын
I am using keyd a few weeks ago. and consider it is better. Please comments if I am wrong.
@vimjoyer10 күн бұрын
Both are great
@angeldude10111 күн бұрын
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.
@frankhuurman395511 күн бұрын
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.
@vimjoyer11 күн бұрын
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
@frankhuurman395511 күн бұрын
@@vimjoyer Thank you! was just finding out about your other videos and those explained it a bit more in depth :)
@brianlogan474011 күн бұрын
Honestly probably the simplest most matter of fact intro to Flakes I've pulled up so far. Thank you for this!
@astronomer40413 күн бұрын
Great content, keep it up.
@lukeE63213 күн бұрын
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.
@vimjoyer10 күн бұрын
I prefer to have a separate theme for my editor, so I didn't connect my neovim to stylix
@RobFisherUK13 күн бұрын
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.
@brunokoiyae13 күн бұрын
please bring us more content about AGS 🙏🙏
@Medan199313 күн бұрын
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.
@budiardjo661013 күн бұрын
i am try to read nix doc, watch some nix conference. but still couldn't achive this whole understanding.
@Simon-xi8tb13 күн бұрын
Dont i need to configure Wayland first and disable all the xserver stuff ?
@liesdamnlies337215 күн бұрын
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.