nix-config
nixpkgs
nix-config | nixpkgs | |
---|---|---|
5 | 3 | |
837 | 401 | |
- | - | |
9.2 | 7.9 | |
2 days ago | 3 days ago | |
Nix | Nix | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nix-config
-
Best way to setup Nvim on NixOS?
Power user, gvolpe has a great config that heavily customizes nvim.
-
Adding a Flake to my Config
I forked and customized a fairly advanced Nixos configuration that I can load from a flake on github. (Mine | Original)
-
Host-specific settings (different approaches)
I think gvolpe's nix-config repo is what u/ppen9u1n was referencing. Looks like there might be some good ideas to mine there.
-
Trying to port all official Cardano software to an open architecture and a more elegant Linux distro than Debian (NixOS on Risc-V) and this is the pushback I get.
I've seen this done with flakes by a NixOS power user named gvolpe. He has it configured to automatically setup each of his different systems with Home Manager, a custom UI, etc. His three different build targets are:
-
Nix-GUI: Make NixOS usable for non-technical users through settings / GUI
I think NixOS would benefit from easily accessible collection of opinionated modules/profiles/configurations with minimal set of options. Something like gnome-desktop / sway-desktop / etc. Gnome actually does pretty good job here.
The point is: currently my NixOS and Home Manager configurations have over 2k LOC total. When you search for configurations on GitHub/Google you are likely to find complex ones. For example, quick search for "nixos gnome" (Google) gives me link to NixOS Wiki (which describes only Gnome part) and blog post (https://gvolpe.com/blog/gnome3-on-nixos/) which is useful but links to really huge configuration (https://github.com/gvolpe/nix-config) that is overwhelming to any beginner.
Great example of such approach is nixos-hardware (https://github.com/NixOS/nixos-hardware) which provides one-line configuration covering hardware quirks.
nixpkgs
-
NixOS-generators – Collection of VM and Container disk image builders for NixOS
I’ve found it most helpful to review other people’s configurations to learn Nix.
Some specific ones I really like:
https://github.com/malob/nixpkgs
https://github.com/fufexan/dotfiles
I keep a not comprehensive GitHub Stars list of Nix stuff I find here if you want more:
https://github.com/stars/heywoodlh/lists/nix
If you aren’t familiar, Nix-Darwin allows you to codify your MacOS deployments in a fashion comparable to NixOS. As a huge Nix-Darwin user myself, I have found malob’s repo extremely helpful for ideas with MacOS configuration. Nix-Darwin has made me so happy as a MacOS user. :)
Some other unsolicited tips:
1. Start with Nix flakes for configuration
2. Invest in Home-Manager before NixOS or Nix-Darwin
3. Ask people for help in Matrix or Discourse — my experience is that Nix-related folk are very welcoming and understanding
Good luck!
-
How do you set git in order to clone from private repo?
I don't think system.autoUpgrade will work at all with flakes since you'd need to update your flake lock file for anything to get updated. I've seen a way to do that automatically with github actions here.
-
Nix Flake working on Darwin, but darwin-rebuild doesn't recognize --experimental-features flag
https://github.com/malob/nixpkgs/discussions/6 (discussion on how to bootstrap a Flake file on Darwin)
What are some alternatives?
devshell - Per project developer environments
impermanence - Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
nix-doom-emacs - doom-emacs packaged for Nix
nix-direnv - A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10]
home-manager - Manage a user environment using Nix [maintainer=@rycee] [Moved to: https://github.com/nix-community/home-manager]
visual-studio-code-insiders-nix - The latest Visual Studio Code Insiders build updated daily
environment - dotfiles
rnix-lsp - WIP Language Server for Nix! [maintainer=@aaronjanse]
nixcfg - NixOS and Home-Manager configs for my devices. dotfiles, but way better
nix-security-lab - Tool set for Information security professionals and all others
solana-nix - The Solana CLI tools packaged up with Nix