dotfiles/flake.nix

25 lines
765 B
Nix
Raw Normal View History

2023-01-01 20:49:20 +00:00
{
2023-01-01 21:00:23 +00:00
description = "My first nix flake";
2023-01-01 20:49:20 +00:00
inputs = {
2023-01-01 21:00:23 +00:00
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-22.05-darwin";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# nix will normally use the nixpkgs defined in home-managers inputs, we only want one copy of nixpkgs though
darwin.url = "github:lnl7/nix-darwin";
darwin.inputs.nixpkgs.follows = "nixpkgs"; # ...
2023-01-01 20:49:20 +00:00
};
2023-01-01 21:00:23 +00:00
outputs = { self, nixpkgs, home-manager, darwin }: {
darwinConfiguration."ts-tl-mbp" = darwin.lib.darwinSystem {
system = "x86_64-darwin";
modules = [
home-manager.darwinModules.home-manager
./hosts/ts-tl-mbp/default.nix
]; # will be important later
2023-01-01 20:49:20 +00:00
};
};
2023-01-01 21:00:23 +00:00
2023-01-01 20:49:20 +00:00
}