homies
devshell
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.
homies
-
Show HN: Fleek – Own Your $Home
This is awesome! I utilize `nix` on Linux and Mac but I haven't "drank the kool-aid" so I utilize `nix profile` and a makefile:
https://github.com/sontek/homies/blob/master/justfile
Fleek basically replaces my hacked together work flow with something that I'd actually utilize on a daily basis! Nix shouldn't be an all or nothing thing and this is one step closer to making it a generally available set of technology.
-
Dotfiles Management
I see a lot of people mentioning home-manager / nix in the comments. I tried drinking the nix kool-aid and home-manager and all that was a little too much more me and landed on a hybrid approach:
https://github.com/sontek/homies
1. I use a `justfile` that calls `nix profile install ...` to install my packages, rather than using a nix configuration file. This allows me to use a standard package manager workflow rather than going "all in".
https://github.com/sontek/homies/blob/master/justfile#L24-L2...
2. I then use GNU Stow to install my dotfile configuration:
https://github.com/sontek/homies/blob/master/justfile#L93-L9...
I think this is a great middle ground where I can utilize `nix` as my package manager across Linux and Mac and have consistency while not having to learn the whole configuration language or change my workflow.
The other tools I use heavily in my environment:
- https://asdf-vm.com/: I find this better than installing python/node/etc from nix.
- https://github.com/casey/just: I use this as my command runner (similar to make but cleaner in my opinion)
-
Nix: An idea whose time has come
Yeah, I think its things like this that make it hard to adopt nix. All I want is a way to say "I want jq, kubectl, and terraform installed" and have it available globally. Not for specific projects or anything like that.
Right now I maintain a makefile that installs everything for me using `nix profile`:
https://github.com/sontek/homies/blob/master/justfile#L14-L2...
Which almost exactly like I want. Only issue is sometimes a new hash is generated (which I don't understand.. maybe a config update in the repos?) and the makefile can't run anymore:
error: packages '/nix/store/y65pp5hipid0fzxl1z7xjxdk4h9jwfw7-exa-0.10.1/bin/exa' and '/nix/store/gy0bqcs9mcan8af47wakdylhal67dpy4-exa-0.10.1/bin/exa' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)
devshell
- Show HN: Flox 1.0 – Open-source dev env as code with Nix
-
Any tips for setting up a local development environment for wordpress?
numtide/devshell is cool little extension to bare devshells, you may wanna have it.
- Devshell – like virtualenv, but for all the languages
-
Devenv.sh: Fast and reproducible developer environments using Nix
There is also devshell[1] which allows you to configure specific commands for your `env` and sits inside your flake.
[1]: https://github.com/numtide/devshell
-
Just, Nix Shell and Podman are a Killer Combo
devshell is pretty useful too :)
- Ask HN: What is your development workflow on the MacBook M1?
-
Building a highly optimized home environment with Nix
I'm new to the Nix world, but so far I've come across Divnix's Digga, Numtide's DevShell, and Misterio77's nix-starter-configs.
-
Annoncing Shix, tailored development shells made with Nix
How does it differ from https://github.com/numtide/devshell ?
-
Nim packages stats
But take a look at devshell is like the NixOS/HomeManager of your (any language) project. I over abused it to create YAML files and to use Nim as script
-
Use remote package derivation file with nix-shell --packages option
Here's an example with devShell as a remote repository: sh nix-shell -p '(import (fetchGit "https://github.com/numtide/devshell") {}).cli'
What are some alternatives?
homer - The home directory management tool.
nix-direnv - A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10]
fleek - [deprecated] Own your $HOME
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
filetailor - Copy and modify plain text files between devices without templates
nixpkgs - Nix Packages collection & NixOS
configs - Dot-files among other configs
nix-config - :space_invader: NixOS configuration
dot-git - Managing your dotfiles the Git Way™
devenv - Fast, Declarative, Reproducible, and Composable Developer Environments
dotfiles - dotfiles + debian setup
flake-template - My template for Nix flakes