53 lines
1.5 KiB
Nix
53 lines
1.5 KiB
Nix
{
|
|
description = "Nix Darwin Configuration";
|
|
|
|
nixConfig = {
|
|
extra-substituters = [ "https://nix-community.cachix.org" ];
|
|
extra-trusted-public-keys = [
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
];
|
|
};
|
|
|
|
inputs = {
|
|
# monorepo w/ recipes ("derivations")
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
|
|
# manages configs
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
# system-level software and settings (macOS)
|
|
darwin.url = "github:lnl7/nix-darwin";
|
|
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
# declarative homebrew management
|
|
nix-homebrew.url = "github:zhaofengli/nix-homebrew";
|
|
|
|
# declarative Neovim
|
|
nixvim.url = "github:nix-community/nixvim";
|
|
|
|
# declarative Discord
|
|
nixcord.url = "github:kaylorben/nixcord";
|
|
|
|
# declarative Spotify
|
|
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
|
|
|
};
|
|
|
|
outputs =
|
|
{ self, darwin, nixpkgs, home-manager, nix-homebrew, nixvim, ... }@inputs:
|
|
let
|
|
# TODO: replace with your username
|
|
primaryUser = "phil";
|
|
in {
|
|
# build darwin flake using:
|
|
# $ darwin-rebuild build --flake .#<name>
|
|
darwinConfigurations."cyper-mac" = darwin.lib.darwinSystem {
|
|
system = "x86_64-darwin"; # aarch64-darwin
|
|
modules = [ ./darwin ./hosts/cyper-mac/configuration.nix ];
|
|
specialArgs = { inherit inputs self primaryUser; };
|
|
};
|
|
|
|
};
|
|
}
|