flake.nix

e489d5d1ce838df439123787a9aae1b6c835f645 · 1.3 KB · 45 lines raw

1 {
2 description = "Example nix-darwin system flake";
3
4 inputs = {
5 nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
6 darwin = {
7 url = "github:nix-darwin/nix-darwin/master";
8 inputs.nixpkgs.follows = "nixpkgs";
9 };
10 home-manager = {
11 url = "github:nix-community/home-manager";
12 inputs.nixpkgs.follows = "nixpkgs";
13 };
14 determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/3";
15 zen-browser = { # Used exclusively for HM module, Zen is installed via cask
16 url = "github:0xc000022070/zen-browser-flake";
17 inputs = {
18 nixpkgs.follows = "nixpkgs";
19 home-manager.follows = "home-manager";
20 };
21 };
22 };
23
24 outputs = { nixpkgs, home-manager, ... }@inputs: {
25 darwinConfigurations."RyanMac" = inputs.darwin.lib.darwinSystem {
26 system = "aarch64-darwin";
27 specialArgs = { inherit inputs; };
28 modules = [
29 inputs.determinate.darwinModules.default
30 ./hosts/RyanMac/configuration.nix
31 home-manager.darwinModules.home-manager
32 {
33 home-manager.useGlobalPkgs = true;
34 home-manager.useUserPackages = true;
35 home-manager.users.ryan = {
36 imports = [
37 inputs.zen-browser.homeModules.beta
38 ./users/ryan/home.nix
39 ];
40 };
41 }
42 ];
43 };
44 };
45 }