1
0
Fork 0
dotfiles/flake.nix

68 lines
1.6 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-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;
nixpkgsConfig = {
overlays = [
overlay-neovim
2022-02-13 20:58:18 +00:00
overlay-zig
2022-02-03 22:35:52 +00:00
overlay-nifoc
];
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
};
};
}