1
0
Fork 0
dotfiles/system/flakes/Styx.nix
Daniel Kempkens 1fff2c98ac
All checks were successful
Build / build-amd64-linux (push) Successful in 49s
Build / build-arm64-linux (push) Successful in 5m56s
neovim: use nightly
2024-06-12 18:00:48 +02:00

49 lines
1.1 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-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 = [
../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;
};
}
];
};
}