's Avatar

@reckenrode

5
Followers
5
Following
14
Posts
22.01.2025
Joined
Posts Following

Latest posts by @reckenrode

You may want to try asking on Discourse <https://discourse.nixos.org>, the NixOS/user channel on Matrix <https://matrix.to/#/%23space:nixos.org>, or reddit <https://www.reddit.com/r/NixOS/>.

14.10.2025 11:57 👍 1 🔁 0 💬 0 📌 0

Flakes always copy the directory to the store unless you use `-f .` to specify the current directory (e.g., `nix develop -f .`).

02.10.2025 15:04 👍 1 🔁 0 💬 0 📌 0

I’m not familiar with devenv, so I don’t know its capabilities. I do know that flakes support multiple `devShell` outputs, which would let you have different shells for different purposes.

02.10.2025 15:02 👍 1 🔁 0 💬 0 📌 0
Declarative shell environments with shell.nix — nix.dev documentation

If this is for development, you can create a development shell for your project. Doing it that way allows you to have a custom environment tailored to each project. It’s also practically required for developing with native dependencies.

wiki.nixos.org/wiki/Develop...

27.09.2025 10:41 👍 1 🔁 0 💬 1 📌 0
Nixpkgs Reference Manual

If you need Python configured with certain packages available, you can use `python.withPackages` to set that up. The result of that can be added to `home.packages` in Home Manager.

nixos.org/manual/nixpk...

27.09.2025 10:41 👍 1 🔁 0 💬 1 📌 0

Anyway, given the way you’ve structured your flake, if you ever do need to support more hosts, it shouldn’t be difficult to add that.

25.09.2025 11:41 👍 0 🔁 0 💬 1 📌 0

Seems reasonable. If you don’t need to deploy to multiple machines from one flake, it makes sense not to add support for it.

25.09.2025 11:41 👍 0 🔁 0 💬 1 📌 0

I avoid using flake frameworks for basically the same reason. Even though the boilerplate can be annoying, I find it easier to understand things and deal with changes when everything (or as much as possible) is explicit.

22.09.2025 23:42 👍 0 🔁 0 💬 0 📌 0
Preview
GitHub - reckenrode/nixos-configs at attic My NixOS and nix-darwin configs. Contribute to reckenrode/nixos-configs development by creating an account on GitHub.

I used to do a lot of magic in my config to make things discoverable and defined by convention in the filesystem, but I found it made my configs harder to understand. You can see those old configs in the `attic` branch at github.com/reckenrode/n....

22.09.2025 23:42 👍 3 🔁 0 💬 1 📌 0
NixOS Manual

The rest of my config is handled through the module system (see nixos.org/manual/nixos...). I define new options that I can toggle or set on hosts that need them. Some are enabled by default, but I try to keep those to a minimum.

22.09.2025 23:42 👍 1 🔁 0 💬 1 📌 0

Since `hmModules` are just modules, you manipulate them like modules and combine them using `lib.mkMerge`. It’s not something I use now, but I’ve used it in the past to use a base module and then extend it with something I needed for that host.

22.09.2025 23:42 👍 1 🔁 0 💬 1 📌 0
Preview
nixos-configs/flake.nix at ee85a2b1c5621a4b84cd8e492076539b39db52a2 · reckenrode/nixos-configs My NixOS and nix-darwin configs. Contribute to reckenrode/nixos-configs development by creating an account on GitHub.

I import my Home Manager configurations as `hmModules` at github.com/reckenrode/n.... This is a personal convention.

In my hosts’ `configuration.nix`, I specify the module I want to use for my user. For zhloe, that’s github.com/reckenrode/n....

22.09.2025 23:42 👍 2 🔁 0 💬 1 📌 0
Preview
nixos-configs/flake.nix at ee85a2b1c5621a4b84cd8e492076539b39db52a2 · reckenrode/nixos-configs My NixOS and nix-darwin configs. Contribute to reckenrode/nixos-configs development by creating an account on GitHub.

For example, zhloe is my router. It runs NixOS. I define the configuration in my `flake.nix` at github.com/reckenrode/n....

I use `_module.args` to pass my flake’s `inputs`, so that I can use it later in the configuration. This allows me to configure Home Manager for that config how I want.

22.09.2025 23:42 👍 0 🔁 0 💬 1 📌 0

Sure, this is a good place to start a thread.

* `hosts` is where I keep the configuration for my various hosts.
* `home-manager` is where I keep the configuration for Home Manager.

These are just conventions. I explicitly import the host configurations and HM configurations where I use them.

22.09.2025 23:42 👍 0 🔁 0 💬 2 📌 0