1
0
Fork 0
dotfiles/system/flakes/Styx.nix
Daniel Kempkens 841cd588cb
All checks were successful
Build / build-amd64-linux (push) Successful in 1m57s
Build / build-arm64-linux (push) Successful in 3m24s
flake: cleanup inputs a bit
2024-07-25 21:31:31 +02:00

51 lines
1.1 KiB
Nix

{ nixpkgs, lix-module, home-manager, nix-darwin, agenix, neovim-nightly-overlay, nifoc-overlay }:
let
default-system = "aarch64-darwin";
overlay-x86 = _: _: { pkgs-x86 = import nixpkgs { system = "x86_64-darwin"; }; };
nixpkgsConfig = {
overlays = [
overlay-x86
agenix.overlays.default
neovim-nightly-overlay.overlays.default
nifoc-overlay.overlay
];
config = {
allowUnfree = true;
allowBroken = true;
};
};
in
{
system = nix-darwin.lib.darwinSystem {
system = default-system;
modules = [
{
nixpkgs = nixpkgsConfig;
nix = {
registry.nixpkgs.to = { type = "path"; path = nixpkgs.outPath; };
nixPath = nixpkgs.lib.mkForce [ "nixpkgs=flake:nixpkgs" ];
};
}
lix-module.nixosModules.default
home-manager.darwinModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.daniel = import ../../home/hosts/Styx.nix;
};
}
agenix.darwinModules.default
../hosts/Styx.nix
];
};
}