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

51 lines
1.1 KiB
Nix
Raw Normal View History

2024-07-25 19:31:31 +00:00
{ nixpkgs, lix-module, home-manager, nix-darwin, agenix, neovim-nightly-overlay, 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"; }; };
nixpkgsConfig = {
overlays = [
overlay-x86
agenix.overlays.default
2024-07-25 19:31:31 +00:00
neovim-nightly-overlay.overlays.default
nifoc-overlay.overlay
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
];
};
}