1
0
Fork 0
dotfiles/system/flakes/Styx.nix
Daniel Kempkens 9c038312c0
All checks were successful
Build / build-amd64-linux (push) Successful in 29s
Build / build-arm64-linux (push) Successful in 1m22s
flake: add nur as an input
2024-03-05 22:20:01 +01:00

54 lines
1.2 KiB
Nix

{ nixpkgs, home-manager, nix-darwin, agenix, inputs, ... }:
let
default-system = "aarch64-darwin";
overlay-x86 = _: _: { pkgs-x86 = import nixpkgs { system = "x86_64-darwin"; }; };
overlay-nur = inputs.nurpkgs.overlay;
overlay-agenix = agenix.overlays.default;
overlay-attic = inputs.attic.overlays.default;
overlay-mkalias = _: _: { inherit (inputs.mkalias.packages.${default-system}) mkalias; };
overlay-nifoc = inputs.nifoc-overlay.overlay;
nixpkgsConfig = {
overlays = [
overlay-x86
overlay-nur
overlay-agenix
overlay-attic
overlay-mkalias
overlay-nifoc
];
config = {
allowUnfree = true;
allowBroken = true;
};
};
in
{
system = nix-darwin.lib.darwinSystem {
system = default-system;
modules = [
../hosts/Styx.nix
home-manager.darwinModules.home-manager
agenix.darwinModules.default
{
nixpkgs = nixpkgsConfig;
nix = {
nixPath = [ "nixpkgs=${nixpkgs}" ];
registry.nixpkgs.flake = nixpkgs;
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.daniel = import ../../home/hosts/Styx.nix;
};
}
];
};
}