1
0
Fork 0
dotfiles/system/flakes/Styx.nix
Daniel Kempkens 6c7c3fff67
All checks were successful
Build / build-amd64-linux (push) Successful in 6m11s
Build / build-arm64-linux (push) Successful in 27m43s
various: updates
2024-07-31 00:51:34 +02:00

52 lines
1.2 KiB
Nix

{ nixpkgs, lix-module, home-manager, nix-darwin, agenix, neovim-nightly-overlay, mkalias, nifoc-overlay }:
let
default-system = "aarch64-darwin";
overlay-x86 = _: _: { pkgs-x86 = import nixpkgs { system = "x86_64-darwin"; }; };
overlay-mkalias = _: _: { inherit (mkalias.packages.${default-system}) mkalias; };
nixpkgsConfig = {
overlays = [
overlay-x86
agenix.overlays.default
neovim-nightly-overlay.overlays.default
nifoc-overlay.overlay
overlay-mkalias
];
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
];
};
}