Our great sponsors
-
veritas
@davidtwco's personal mono-repo - containing the declarative configuration of servers, desktops and laptops - including dotfiles; a collection of packages; a static site generator and source of "davidtw.co".
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Current config [nix](https://github.com/edeneast/nyx)
I work in the game industry... and that means one things... WINDOWS 🤮. I user nixos on my laptops. This meant that my nix configuration defined both `nixosSystem` and `homeManagerConfiguration`. I would use wsl on windows as much as I could. My current flake structure was modeled from [@davidwco](https://github.com/davidtwco/veritas) and [@hlissner](https://github.com/hlissner/dotfiles).
I work in the game industry... and that means one things... WINDOWS 🤮. I user nixos on my laptops. This meant that my nix configuration defined both `nixosSystem` and `homeManagerConfiguration`. I would use wsl on windows as much as I could. My current flake structure was modeled from [@davidwco](https://github.com/davidtwco/veritas) and [@hlissner](https://github.com/hlissner/dotfiles).
My flake does most of those things. I don’t have any systems with WSL, so I’m not sure whether or how that would work. If it can be created by nixosSystem, then it would probably work. I take a pretty different approach in my flake though. I’ve structured it so I can define platforms, hosts, and users by convention. Adding a new host is just creating the right directory and dropping a configuration.nix in it. Still, that might not be helpful for your needs since you’ve already got an established convention.
Mine sets up a nixos host, a linux host and a macos host with nix-darwin, all with home manager: https://github.com/sebastiant/dotfiles/blob/master/flake.nix
I’ll just add on, I use functions in my nix file to make configs (iso, home manager, nixos),: function folder. With this logic you can create basic other hosts. How they are used in used in flake.nix
People have upvoted me, so I guess I better deliver now. My flake includes multiple hosts and multiple independent home-manager configurations. For the machines that are actual nixos machines, I set them up with