1
0
Fork 0
dotfiles/system/flakes/Styx.nix

55 lines
1.3 KiB
Nix
Raw Normal View History

2022-07-29 20:13:31 +02:00
{ nixpkgs, home-manager, darwin, inputs, ... }:
let
2022-10-26 09:55:10 +02:00
default-system = "aarch64-darwin";
patched-darwin =
let
src = nixpkgs.legacyPackages.${default-system}.applyPatches {
name = "nix-darwin";
src = darwin;
2022-10-26 16:10:57 +02:00
patches = [ ];
2022-10-26 09:55:10 +02:00
};
in
nixpkgs.lib.fix (self: (import "${src}/flake.nix").outputs { inherit self nixpkgs; });
2022-07-29 20:13:31 +02:00
overlay-x86 = _: _: { pkgs-x86 = import nixpkgs { system = "x86_64-darwin"; }; };
overlay-agenix = inputs.ragenix.overlays.default;
2023-04-05 10:10:31 +02:00
overlay-attic = inputs.attic.overlays.default;
2022-07-29 20:13:31 +02:00
overlay-neovim = inputs.neovim-nightly-overlay.overlay;
overlay-nifoc = inputs.nifoc-overlay.overlay;
nixpkgsConfig = {
overlays = [
overlay-x86
2023-02-05 17:51:04 +01:00
overlay-agenix
2023-04-05 10:10:31 +02:00
overlay-attic
2022-07-29 20:13:31 +02:00
overlay-neovim
overlay-nifoc
];
config = {
allowUnfree = true;
allowBroken = true;
};
};
in
{
2022-10-26 09:55:10 +02:00
system = patched-darwin.lib.darwinSystem {
system = default-system;
2022-07-29 20:13:31 +02:00
modules = [
../hosts/Styx.nix
home-manager.darwinModules.home-manager
2023-01-02 00:30:54 +01:00
2022-07-29 20:13:31 +02:00
{
nixpkgs = nixpkgsConfig;
2022-08-18 13:26:12 +02:00
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
2022-07-29 20:13:31 +02:00
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.daniel = import ../../home/hosts/Styx.nix;
}
];
};
}