From e6edbad14d8255743c7b259a1985db5fb5bd4e91 Mon Sep 17 00:00:00 2001 From: jjanzen Date: Wed, 5 Mar 2025 22:17:31 -0600 Subject: system changes --- macos.local/flake/flake.nix.org | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 macos.local/flake/flake.nix.org (limited to 'macos.local/flake/flake.nix.org') diff --git a/macos.local/flake/flake.nix.org b/macos.local/flake/flake.nix.org new file mode 100644 index 0000000..9a07ccb --- /dev/null +++ b/macos.local/flake/flake.nix.org @@ -0,0 +1,34 @@ +#+title: macOS Nix Configuration + +The root for my macOS nix configuration using flake and home-manager. +#+begin_src nix + { + description = "My Darwin Configuration"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + nix-darwin.url = "github:LnL7/nix-darwin"; + nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; + home-manager.url = "github:nix-community/home-manager"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + }; + + outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager }: { + darwinConfigurations."macos" = nix-darwin.lib.darwinSystem { + specialArgs = { inherit inputs; }; + modules = [ + ./system/core.nix + home-manager.darwinModules.home-manager + { + home-manager.backupFileExtension = "bak"; + home-manager.useGlobalPkgs = false; + home-manager.useUserPackages = true; + home-manager.users.jjanzen = import ./home/core.nix; + } + ]; + }; + + darwinPackages = self.darwinConfigurations."macos".pkgs; + }; + } +#+end_src -- cgit v1.2.3