2024-07-08 10:59:56 +00:00
|
|
|
{ nixpkgs, lix-module, home-manager, nix-darwin, agenix, inputs, ... }:
|
2022-07-29 18:13:31 +00:00
|
|
|
|
|
|
|
let
|
2022-10-26 07:55:10 +00:00
|
|
|
default-system = "aarch64-darwin";
|
|
|
|
|
2022-07-29 18:13:31 +00:00
|
|
|
overlay-x86 = _: _: { pkgs-x86 = import nixpkgs { system = "x86_64-darwin"; }; };
|
2023-10-01 15:34:28 +00:00
|
|
|
overlay-mkalias = _: _: { inherit (inputs.mkalias.packages.${default-system}) mkalias; };
|
2022-07-29 18:13:31 +00:00
|
|
|
|
|
|
|
nixpkgsConfig = {
|
|
|
|
overlays = [
|
|
|
|
overlay-x86
|
2024-03-07 07:58:35 +00:00
|
|
|
agenix.overlays.default
|
2024-06-12 16:00:48 +00:00
|
|
|
inputs.neovim-nightly-overlay.overlays.default
|
2024-03-07 07:58:35 +00:00
|
|
|
inputs.nifoc-overlay.overlay
|
2024-05-20 11:50:08 +00:00
|
|
|
overlay-mkalias
|
2022-07-29 18:13:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
allowBroken = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2023-07-13 10:02:14 +00:00
|
|
|
system = nix-darwin.lib.darwinSystem {
|
2022-10-26 07:55:10 +00:00
|
|
|
system = default-system;
|
2022-07-29 18:13:31 +00:00
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
nixpkgs = nixpkgsConfig;
|
2023-07-21 15:29:40 +00:00
|
|
|
nix = {
|
2024-07-08 10:59:56 +00:00
|
|
|
registry.nixpkgs.to = { type = "path"; path = nixpkgs.outPath; };
|
|
|
|
nixPath = nixpkgs.lib.mkForce [ "nixpkgs=flake:nixpkgs" ];
|
2023-07-21 15:29:40 +00:00
|
|
|
};
|
2024-07-08 10:59:56 +00:00
|
|
|
}
|
2023-07-21 15:29:40 +00:00
|
|
|
|
2024-07-08 10:59:56 +00:00
|
|
|
lix-module.nixosModules.default
|
|
|
|
|
|
|
|
home-manager.darwinModules.home-manager
|
|
|
|
{
|
2023-07-21 15:29:40 +00:00
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users.daniel = import ../../home/hosts/Styx.nix;
|
|
|
|
};
|
2022-07-29 18:13:31 +00:00
|
|
|
}
|
2024-07-08 10:59:56 +00:00
|
|
|
|
|
|
|
agenix.darwinModules.default
|
|
|
|
|
|
|
|
../hosts/Styx.nix
|
2022-07-29 18:13:31 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|