After spending 2 hours trying to make my flake config more modular, I had a realization. This isn’t fun right now.
I did learn how to make my own modules and use libmkDefault and lib.mkEnableOption. I have learned a lot about git, too. I even had forgejo running for a bit in an attempt to not use Github. However, I am going to simplify my current setup, so I can focus more on learning Nix. This means I need to watch more YouTube videos, read more tutorials, and fool around on my one host.
Currently, I have a multi host flake (3 computers) setup that is synced to git. I’m also using home manager (poorly).
├── nixos-config
│ ├── flake.lock
│ ├── flake.nix
│ ├── flatpak-install.sh
│ ├── home.nix
│ ├── hosts
│ │ ├── aspirenix
│ │ │ ├── configuration.nix
│ │ │ └── hardware-configuration.nix
│ │ ├── bluenix
│ │ │ ├── configuration.nix
│ │ │ └── hardware-configuration.nix
│ │ └── greynix
│ │ ├── configuration.nix
│ │ └── hardware-configuration.nix
│ ├── nixosModules
│ │ ├── base.nix
│ │ ├── docker.nix
│ │ ├── fonts.nix
│ │ ├── gnome.nix
│ │ ├── module-docker.nix
│ │ ├── module-modules.nix
│ │ └── systemd.nix
│ ├── nix-upgrade.sh
│ ├── pull.sh
│ ├── README.md
│ ├── rebuild.sh
│ ├── temp-non-declarative-stuff.txt
│ └── update.sh
Going forward, my plan is to only continue to perservere with Greynix using flakes and home-manager. Well, I am torn about home-manager. I may drop that until I understand basic NixOS flakes more thoroughly.
Bluenix will change to a Bluefin install. I use that computer at work where the internet is atrocious, so it’s difficult to do nix upgrades there. Aspirenix will stay with NixOS only because it only has 4GB of RAM. I couldn’t really get Bluefin with GNOME running on there if I even wanted to.
I also have another pan in the NixOS fire, knossos. It is a server. I’m trying to make a tailscale only NixOS box using TSDProxy. I will have it’s own private git repo for that as I keep learning nix. I will have this as a non-Flake setup without home-manager.
I still love Nix but I almost wish there was something in between Bluefin/Bazzite and NixOS. NixOS should be a little more opinionated, or at least have certain ‘blessed’ ways of doing things. A person trying to use a flake setup with 3-4 laptops is not an edge case. For a person using Nix, this is probably pretty common.
I am almost, almost tempted to spin up my own ublue distro but luckily my git skills are too poor to even think about that at the moment.