32 lines
860 B
Nix
32 lines
860 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
darwin.url = "github:lnl7/nix-darwin";
|
|
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = inputs@{ nixpkgs, home-manager, darwin, ... }: {
|
|
darwinConfigurations.TobAir = darwin.lib.darwinSystem {
|
|
system = "aarch64-darwin";
|
|
|
|
pkgs = import nixpkgs {
|
|
system = "aarch64-darwin";
|
|
config.allowUnfree = true;
|
|
};
|
|
|
|
modules = [
|
|
./modules/darwin
|
|
home-manager.darwinModules.home-manager
|
|
{
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users.tobi.imports = [ ./modules/home-manager ];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|