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
|
|
|
|
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;
|
|
|
|
overlay-nifoc = inputs.nifoc-overlay.overlay;
|
|
|
|
|
|
|
|
nixpkgsConfig = {
|
|
|
|
overlays = [
|
|
|
|
overlay-neovim
|
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|