diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-06-14 23:39:10 -0400 |
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-06-14 23:39:10 -0400 |
| commit | 9e70f144dde840fed8d8b485f9396638139ec310 (patch) | |
| tree | 4473219575651064f213a5bd80cb6eae33b3862f /flake.nix | |
Initial Commit for mac testing
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..71006ec --- /dev/null +++ b/flake.nix | |||
| @@ -0,0 +1,45 @@ | |||
| 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 | } | ||
