I just installed lazyvim and necessary packages through home-manager. I think I needed to install fonts through conf.nix, and that's it.
comments
Here’s how I’ve got my nvim configured for nixos if you’re interested: https://codeberg.org/farrisswisher/nixos/src/branch/main/mod/user/nvim Mind you this is managed via homeManager but it should be mostly the same if you wanted to just use it in your regular nix rebuild rather than rely on homeManager
Edit: to clarify, i’m posting this because the method of configuring nvim I’ve used here circumvents the need for lazyvim entirely, as you allow Nix to manage your plugins rather than lazyvim, packer, etc etc. You also can use it to manage all your various language LSPs so that eliminates the need for meson as well. All while still using lua for the actual configuration! Though one drawback I’ve had with this approach is that I did have some extra config files which I had to combine into the init.lua file, but other than that this has made the most sense to me, I hope it can prove helpful to you or anyone else who stops by here
What are the biggest, most well know flakerepos?
I was just watching this yesterday!
@ruffsl I have no bandwidth quota on my vps's, only memory and disk. See eskimo.com/services/virtual-pr… further our shared hosting is extremely robust, this friendica site runs on it, friendica.eskimo.com/ and runs around 7-16 hits/second (between slow and peak times) and response time is generally between 240-500ms which is better than most major providers. It is doable, for me the big issue is you are proxying https, is that data getting un-encrypted / re-encrypted in the chain? If so do you really want them looking at all of your traffic?
There are many flake repos which will have the blobs of stuff that you want, LLMs can help, even the nix wiki is good for stuff like gnome or KDE.
Basically the different automated install paths have a few different DE's and language etc setup, but the rest you find yourself (programs, utils etc)
Home.nix is "home manager" configuration which is like it sounds, the configuration of home which is less drives and sound card and more programs and config.
Yeah, the centralization of public Internet infrastructure around Cloud flare has been concerning, not only as a single point of failure but also in terms of consolidation of trust.
As a prior student workout a public IP deep behind several NATs, with little funds for self hosting hobbies, these kinds of tunnel services were a handy gateway in getting started.
Although, I hope ISP adoption of IPv6 or cheaper bandwidth quotas for VPS providers help compete on this front for self hosting networking.
I don't use it for any production site, but it works really well for development, though. I can run multiple docker services on my local machine, add a cloudflared service for each of them and forget about port conflicts, etc. To do that without cloudflared, I'd have to setup a traefik proxy and mess with my home router.
@ruffsl I see no desirability to putting a man-in-the-middle of a web connection. Cloud flare = cloud censor and spy.
Thanks that's very informative
Especially for different purposes and on different hardware
Too bad you have to rely on cloudflare to then manage your domain to utilize this feature, like if it's just a demo for a one off project.
Here's mine. Probably top 10 /s: https://github.com/rutrum/dots
Sorry for keeping you hanging, i actually got the idea from here you can ignore the nixgl stuff because that wouldn't be needed anymore, but the important part is building a derivation with those drivers in it, and then symlink those folders to /run. It should work with rocm/cuda as well but i haven't troed that yet. I've done some basic testing in a vm while i'm working on the config and so far for opengl stuff it has been working fine.
TDIL about nix-ld , this is so cool! Think I'll try this out soon:
Can you share your setup? I'd really like that because I don't think nixgl works with GPPU apps like CUDA or lc0 (chess engine that uses gpu).
EDIT:
Is this it: https://github.com/juipeltje/configs/blob/54e971f6a6da47d6cfd02a6409be97d5e1051b0f/scripts/cron/nix-drivers.sh ?
Although this seems like it would just symlink opengl? What if I wanted GGPU like OpenCL or CUDA?
Edit2: wait, I think I might be misunderstanding how it works. I think nixgl already supports opencl, because it's mesa that implements opencl and opengl. But how would I get mesa support? I don't think the symlink to /run trick works.
Yeah this happened a while ago, it's been in stable since 25.05 i think. Nixgl isn't really a good solution for me though, but luckily i recently found another option of populating the /run directory with the nix drivers, the same way nixos does it. This seems to solve all the issues i had and makes nix on non-nixos much more powerfull to me. Since i can install game launchers and entire compositors with it, and programs that require the native system drivers will still be able to work inside of that nix-installed compositor. I'm thinking of switching back to void now and i'm working on a non-nix home manager setup.
Thanks, although what I'm looking for is a file that will make a kde plasma desktop with chromium and libreoffice installed Something I can plop on a usb stick and hand to grandma so she can linux up her obsoleted win10 pc without me having to explain what a nixos is.
I understand she probably will not understand the nuance of a immutable filesystem based os but that's fine. I simply do not have the energy to tailor a file for each individual grandma that I have.
Thanks, that's exactly what I'm looking for.
So is there such a repository or not ? Is every nixos user making the configuration file from scratch in vim ?
That's how you should do it IMHO. You will miss out on a lot of benefits of NixOS if you don't understand how the config system works, at least to the point of writing your own config files.
I figured there should be a repository where most user just pick a ready made file and that’s the end of that. Not really having to learn the syntax of that file and writing it down ?
There are lots of examples online that can get you inspired, but ultimately you are building your own system and it's up to you to write the config. Feel free to copy code from other people, as long as you follow the licenses in the projects (a lot are CC0/public domain, so you can just steal stuff freely with no remorse, but it's also nice to mention the original author)
I figured if you sent me that file from your system, I’d get your system exactly how you designed it.
Usually people split up their configs into multiple files for readability/maintainability. But yes, if they sent you their entire configuration repository you would (or at least should) get the same result.
Here are some configs to get inspired by: https://nixos.wiki/wiki/Configuration_Collection
Ah I thought it was all one file, and maybe that would just be like, commenting out the system section or something.
But I do mean, which apps are installed, what desktop environment, really the user interface, the end user experience that's what I was wondering.
So is there such a repository or not ? Is every nixos user making the configuration file from scratch in vim ?
I figured there should be a repository where most user just pick a ready made file and that's the end of that. Not really having to learn the syntax of that file and writing it down ?
Cool idea.
Would maybe be more the home.nix since that is more the desktop orientated stuff. Unless you also want how my soundcard and drives are setup...
Probably yes !
I meant the file that decides how everything works
I figured if you sent me that file from your system, I'd get your system exactly how you designed it.
I think it would be great to just load random ones of these from other people to see how they like their system.
And then I could pick and choose those aspects that I like while also trying many, radically different ways of doing things as fast as my system can reboot !
I have been using nix on various systems and especially nixos for quite a while and a github access token has been about the most exciting thing in nix.conf (and enabling flakes obviously😅)
Do you mean configuration.nix?