aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake/flake.nix.org
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-07 18:55:30 -0500
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-07 18:55:30 -0500
commit616c0b69313ce28bcc727b1763e99604929c30da (patch)
treed09cf3083ead9885000487440f48ce4e43a920f8 /macos.local/.flake/flake.nix.org
parent0ef7783a21a5f63f45d8c1bc466d0dce435f966e (diff)
begin nix migration for mac
Diffstat (limited to 'macos.local/.flake/flake.nix.org')
-rw-r--r--macos.local/.flake/flake.nix.org32
1 files changed, 32 insertions, 0 deletions
diff --git a/macos.local/.flake/flake.nix.org b/macos.local/.flake/flake.nix.org
new file mode 100644
index 0000000..b971bf6
--- /dev/null
+++ b/macos.local/.flake/flake.nix.org
@@ -0,0 +1,32 @@
+#+title: macOS Nix Configuration
+
+#+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.useGlobalPkgs = true;
+ home-manager.useUserPackages = true;
+ home-manager.users.jjanzen = import ./home/core.nix;
+ }
+ ];
+ };
+
+ darwinPackages = self.darwinConfigurations."macos".pkgs;
+ };
+ }
+#+end_src