dotfiles/nix/flake.nix

31 lines
1,008 B
Nix
Raw Normal View History

2023-06-09 09:19:42 +00:00
{
description = "flake of the lyxer...";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-23.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-06-09 10:47:29 +00:00
dotfiles = {
url = "https://github.com/keanuplayz/dotfiles";
type = "git";
submodules = true;
flake = false;
};
2023-06-09 09:19:42 +00:00
};
# add the inputs declared above to the argument attribute set
2023-06-09 10:47:29 +00:00
outputs = { self, nixpkgs, home-manager, dotfiles, darwin }: {
2023-06-09 09:19:42 +00:00
darwinConfigurations."alymac" = darwin.lib.darwinSystem {
system = "x86_64-darwin";
2023-06-09 10:47:29 +00:00
specialArgs = { inherit dotfiles; };
2023-06-09 10:47:04 +00:00
modules = [
home-manager.darwinModules.home-manager
./hosts/alymac/default.nix
];
2023-06-09 09:19:42 +00:00
};
};
}