From 9e70f144dde840fed8d8b485f9396638139ec310 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Sun, 14 Jun 2026 23:39:10 -0400 Subject: Initial Commit for mac testing --- flake.nix | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..71006ec --- /dev/null +++ b/flake.nix @@ -0,0 +1,45 @@ +{ + description = "Example nix-darwin system flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + darwin = { + url = "github:nix-darwin/nix-darwin/master"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/3"; + zen-browser = { # Used exclusively for HM module, Zen is installed via cask + url = "github:0xc000022070/zen-browser-flake"; + inputs = { + nixpkgs.follows = "nixpkgs"; + home-manager.follows = "home-manager"; + }; + }; + }; + + outputs = { nixpkgs, home-manager, ... }@inputs: { + darwinConfigurations."RyanMac" = inputs.darwin.lib.darwinSystem { + system = "aarch64-darwin"; + specialArgs = { inherit inputs; }; + modules = [ + inputs.determinate.darwinModules.default + ./hosts/RyanMac/configuration.nix + home-manager.darwinModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.ryan = { + imports = [ + inputs.zen-browser.homeModules.beta + ./users/ryan/home.nix + ]; + }; + } + ]; + }; + }; +} -- cgit v1.3