1
0
Fork 0
dotfiles/system/flakes/Styx.nix
Daniel Kempkens 1dcf8c3ccf
All checks were successful
Build / build-amd64-linux (push) Successful in 27s
Build / build-arm64-linux (push) Successful in 6m24s
Styx: Try Lix
2024-07-08 12:59:56 +02:00

52 lines
1.2 KiB
Nix

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