2023-09-24 16:10:08 +00:00
|
|
|
{ nixpkgs, 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-04-14 08:23:54 +00:00
|
|
|
overlay-agenix = inputs.agenix.overlays.default;
|
2023-04-05 08:10:31 +00:00
|
|
|
overlay-attic = inputs.attic.overlays.default;
|
2022-07-29 18:13:31 +00:00
|
|
|
overlay-nifoc = inputs.nifoc-overlay.overlay;
|
|
|
|
|
|
|
|
nixpkgsConfig = {
|
|
|
|
overlays = [
|
|
|
|
overlay-x86
|
2023-02-05 16:51:04 +00:00
|
|
|
overlay-agenix
|
2023-04-05 08:10:31 +00:00
|
|
|
overlay-attic
|
2022-07-29 18:13:31 +00:00
|
|
|
overlay-nifoc
|
|
|
|
];
|
|
|
|
|
|
|
|
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 = [
|
|
|
|
../hosts/Styx.nix
|
|
|
|
|
|
|
|
home-manager.darwinModules.home-manager
|
2023-01-01 23:30:54 +00:00
|
|
|
|
2023-09-24 16:10:08 +00:00
|
|
|
agenix.darwinModules.default
|
|
|
|
|
2022-07-29 18:13:31 +00:00
|
|
|
{
|
|
|
|
nixpkgs = nixpkgsConfig;
|
2023-07-21 15:29:40 +00:00
|
|
|
nix = {
|
|
|
|
nixPath = [ "nixpkgs=${nixpkgs}" ];
|
|
|
|
registry.nixpkgs.flake = nixpkgs;
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users.daniel = import ../../home/hosts/Styx.nix;
|
|
|
|
};
|
2022-07-29 18:13:31 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|