refactor(nix): migrate to flake-parts, drop specialArgs ♻️

- Convert flake.nix to flake-parts.lib.mkFlake; split each host into
  its own module under nixos/flake-modules/.
- Replace zen-browser specialArgs plumbing with a nixpkgs overlay so
  home.nix can just reference pkgs.zen-browser.
This commit is contained in:
DannyDannyDanny 2026-04-18 17:00:19 +02:00
parent b667f7c247
commit c434a479a5
9 changed files with 158 additions and 128 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, zen-browser ? null, ... }:
{ pkgs, lib, config, ... }:
{
# TODO: remove next two lines from here or from flake.nix
# home.username = "danny";
@ -171,9 +171,9 @@
# Fonts
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
# Zen Browser (Firefox fork; from flake, supports aarch64-darwin)
] ++ (lib.optionals (zen-browser != null) [
zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.default
# Zen Browser (Firefox fork; from flake overlay, supports aarch64-darwin)
] ++ (lib.optionals (pkgs ? zen-browser) [
pkgs.zen-browser
]) ++ (with pkgs; [
# Google Fonts (includes Michroma)
google-fonts