1
0
Fork 0
dotfiles/system/flakes/Styx.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

2023-09-24 16:10:08 +00:00
{ nixpkgs, home-manager, nix-darwin, agenix, inputs, ... }:
2022-07-29 18:13:31 +00:00
let
2022-10-26 07:55:10 +00:00
default-system = "aarch64-darwin";
2022-07-29 18:13:31 +00:00
overlay-x86 = _: _: { pkgs-x86 = import nixpkgs { system = "x86_64-darwin"; }; };
2023-10-01 15:34:28 +00:00
overlay-mkalias = _: _: { inherit (inputs.mkalias.packages.${default-system}) mkalias; };
2022-07-29 18:13:31 +00:00
nixpkgsConfig = {
overlays = [
overlay-x86
agenix.overlays.default
2024-06-12 16:00:48 +00:00
inputs.neovim-nightly-overlay.overlays.default
inputs.nifoc-overlay.overlay
2024-05-20 11:50:08 +00:00
overlay-mkalias
2022-07-29 18:13:31 +00:00
];
config = {
allowUnfree = true;
allowBroken = true;
};
};
in
{
2023-07-13 10:02:14 +00:00
system = nix-darwin.lib.darwinSystem {
2022-10-26 07:55:10 +00:00
system = default-system;
2022-07-29 18:13:31 +00:00
modules = [
../hosts/Styx.nix
home-manager.darwinModules.home-manager
2023-01-01 23:30:54 +00:00
2023-09-24 16:10:08 +00:00
agenix.darwinModules.default
2022-07-29 18:13:31 +00:00
{
nixpkgs = nixpkgsConfig;
2023-07-21 15:29:40 +00:00
nix = {
2024-07-07 21:52:33 +00:00
# nixPath = [ "nixpkgs=${nixpkgs}" ];
2023-07-21 15:29:40 +00:00
registry.nixpkgs.flake = nixpkgs;
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.daniel = import ../../home/hosts/Styx.nix;
};
2022-07-29 18:13:31 +00:00
}
];
};
}