1
0
Fork 0
dotfiles/flake.nix

72 lines
1.8 KiB
Nix
Raw Normal View History

2021-12-06 22:35:29 +00:00
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
2022-02-03 22:35:52 +00:00
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
2021-12-10 21:15:13 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2021-12-06 22:35:29 +00:00
2021-12-17 20:41:54 +00:00
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
2021-12-14 19:34:31 +00:00
2022-02-13 23:12:21 +00:00
zig-overlay = {
2022-02-13 20:58:18 +00:00
url = "github:arqv/zig-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
2021-12-17 20:41:54 +00:00
nifoc-overlay = {
url = "github:nifoc/nix-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
2021-12-06 22:35:29 +00:00
};
2022-02-03 22:35:52 +00:00
outputs = inputs@{ self, nixpkgs, darwin, home-manager, ... }:
let
overlay-x86 = final: prev: { pkgs-x86 = import inputs.nixpkgs { system = "x86_64-darwin"; }; };
2022-02-03 22:35:52 +00:00
overlay-neovim = inputs.neovim-nightly-overlay.overlay;
2022-02-13 23:12:21 +00:00
overlay-zig = final: prev: { zigpkgs = inputs.zig-overlay.packages.${prev.system}; };
2022-02-03 22:35:52 +00:00
overlay-nifoc = inputs.nifoc-overlay.overlay;
2022-03-26 21:50:56 +00:00
overlay-patches = import ./overlay-patches.nix;
2022-02-03 22:35:52 +00:00
nixpkgsConfig = {
overlays = [
overlay-x86
2022-02-03 22:35:52 +00:00
overlay-neovim
2022-02-13 20:58:18 +00:00
overlay-zig
2022-02-03 22:35:52 +00:00
overlay-nifoc
2022-03-26 21:50:56 +00:00
overlay-patches
2022-02-03 22:35:52 +00:00
];
config = {
allowUnfree = true;
allowBroken = true;
};
};
in
{
darwinConfigurations."Styx" = darwin.lib.darwinSystem {
2021-12-27 20:24:11 +00:00
system = "aarch64-darwin";
2022-02-03 22:35:52 +00:00
modules = [
./darwin-configuration.nix
home-manager.darwinModules.home-manager
2021-12-06 22:35:29 +00:00
{
2022-02-03 22:35:52 +00:00
nixpkgs = nixpkgsConfig;
nix.nixPath = { nixpkgs = "${nixpkgs}"; };
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.daniel = import ./home.nix;
}
];
2021-12-06 22:35:29 +00:00
};
};
}