dotfiles/system/flakes/Styx.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

2024-07-30 22:51:24 +00:00
{ nixpkgs, lix-module, home-manager, nix-darwin, agenix, neovim-nightly-overlay, mkalias, nifoc-overlay }:
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"; }; };
2024-07-30 22:51:24 +00:00
overlay-mkalias = _: _: { inherit (mkalias.packages.${default-system}) mkalias; };
2022-07-29 18:13:31 +00:00
nixpkgsConfig = {
overlays = [
overlay-x86
agenix.overlays.default
2024-07-25 19:31:31 +00:00
neovim-nightly-overlay.overlays.default
nifoc-overlay.overlay
2024-07-30 22:51:24 +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
];
};
}