add darwin support
This commit is contained in:
parent
73904c036f
commit
4a7febee6c
10 changed files with 774 additions and 47 deletions
12
flake.nix
12
flake.nix
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue