2021-10-26 18:25:19 +00:00
|
|
|
{
|
|
|
|
description = "nki's darwin system";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/21.05";
|
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
|
|
darwin.url = "github:lnl7/nix-darwin/master";
|
|
|
|
darwin.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, darwin, nixpkgs, nixpkgs-unstable, home-manager }: {
|
2021-10-27 19:36:16 +00:00
|
|
|
# MacBook configuration: nix-darwin + home-manager
|
2021-10-26 18:25:19 +00:00
|
|
|
darwinConfigurations."nki-macbook" = darwin.lib.darwinSystem rec {
|
|
|
|
system = "aarch64-darwin";
|
|
|
|
modules = [
|
|
|
|
./darwin/configuration.nix
|
|
|
|
home-manager.darwinModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2021-10-27 19:36:16 +00:00
|
|
|
home-manager.extraSpecialArgs = { inherit nixpkgs-unstable; };
|
2021-10-27 16:35:53 +00:00
|
|
|
home-manager.users.nki = import ./home/macbook-home.nix;
|
2021-10-26 18:25:19 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
inputs = {
|
2021-10-27 19:36:16 +00:00
|
|
|
inherit darwin nixpkgs-unstable;
|
|
|
|
nixpkgs = nixpkgs-unstable;
|
2021-10-26 18:25:19 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|