This repository has been archived on 2024-07-29. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config/flake.nix

40 lines
1.3 KiB
Nix
Raw Normal View History

2024-07-19 01:08:20 -05:00
{
description = "Wyatt's configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
mac-app-util.url = "github:hraban/mac-app-util";
};
outputs = inputs@{ self, nix-darwin, home-manager, nixpkgs, mac-app-util }:
let configuration = { pkgs, ... }: { };
in {
# Build darwin flake using:
# $ darwin-rebuild build --flake .#sephiroth
darwinConfigurations."sephiroth" = nix-darwin.lib.darwinSystem {
modules = [
./hosts/sephiroth/configuration.nix
mac-app-util.darwinModules.default
home-manager.darwinModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.verbose = true;
home-manager.users.wyatt.imports = [ ./hosts/sephiroth/home.nix mac-app-util.homeManagerModules.default ];
}
];
};
# Expose the package set, including overlays, for convenience.
darwinPackages = self.darwinConfigurations."sephiroth".pkgs;
};
}