flake.nix

06f4083f0d8f521dfde6e1961de8354b6df4a92e · 1.3 KB · 46 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 { nixpkgs.config.allowUnfree = true; }
30 inputs.determinate.darwinModules.default
31 ./hosts/RyanMac/configuration.nix
32 home-manager.darwinModules.home-manager
33 {
34 home-manager.useGlobalPkgs = true;
35 home-manager.useUserPackages = true;
36 home-manager.users.ryan = {
37 imports = [
38 inputs.zen-browser.homeModules.beta
39 ./users/ryan/home.nix
40 ];
41 };
42 }
43 ];
44 };
45 };
46 }