From 122d9f034c22829716350f4e07bf1de850529f59 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 22 Oct 2024 17:49:24 +0200 Subject: [PATCH] Install basic nix dawrin --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 16 ++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/flake.lock b/flake.lock index ab67d51..5136055 100644 --- a/flake.lock +++ b/flake.lock @@ -333,6 +333,26 @@ "type": "github" } }, + "nix-darwin": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1729579044, + "narHash": "sha256-0kEUVl5s8LHbK4/xEePflsdYVwG+RRFSIofSvITYmIU=", + "owner": "LnL7", + "repo": "nix-darwin", + "rev": "64d9d1ae25215c274c37e3e4016977a6779cf0d3", + "type": "github" + }, + "original": { + "owner": "LnL7", + "repo": "nix-darwin", + "type": "github" + } + }, "nix-index-database": { "inputs": { "nixpkgs": [ @@ -431,6 +451,7 @@ "home-manager": "home-manager", "impermanence": "impermanence", "neovim-nightly": "neovim-nightly", + "nix-darwin": "nix-darwin", "nix-index-database": "nix-index-database", "nixos-hardware": "nixos-hardware", "nixos-wsl": "nixos-wsl", diff --git a/flake.nix b/flake.nix index 58354c5..41d9fa2 100644 --- a/flake.nix +++ b/flake.nix @@ -38,6 +38,10 @@ url = "github:zoriya/river/br-v0.3.5"; flake = false; }; + nix-darwin = { + url = "github:LnL7/nix-darwin"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { @@ -51,6 +55,7 @@ impermanence, nixos-hardware, nix-index-database, + nix-darwin, ... } @ inputs: let user = "zoriya"; @@ -134,5 +139,16 @@ lucca = mkSystem "lucca" "wsl" []; }; + darwinConfigurations."toto" = nix-darwin.lib.darwinSystem { + modules = [ +{ +nixpkgs.hostPlatform = "aarch64-darwin"; +system.stateVersion = 5; +services.nix-daemon.enable = true; +} + ]; + }; + }; } +