add darwin support

This commit is contained in:
atagen 2026-05-24 18:10:30 +10:00
parent 73904c036f
commit 4a7febee6c
10 changed files with 774 additions and 47 deletions

View file

@ -268,11 +268,23 @@
}
);
# the module body in ./nix/module.nix only touches options common to
# both NixOS and nix-darwin (environment.{variables,systemPackages,
# pathsToLink,extraSetup} + a programs.inshellah namespace), so the two
# platform outputs share it verbatim and differ only in which package
# the host system resolves to.
nixosModules.default =
{ pkgs, ... }:
{
imports = [ ./nix/module.nix ];
programs.inshellah.package = self.packages.${pkgs.stdenv.hostPlatform.system}.default;
};
darwinModules.default =
{ pkgs, ... }:
{
imports = [ ./nix/module.nix ];
programs.inshellah.package = self.packages.${pkgs.stdenv.hostPlatform.system}.default;
};
};
}