From f9434e85ac99c0ccaf4d796dd903480d6bd8f973 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Mon, 2 May 2022 19:25:20 -0400 Subject: [PATCH] Ensure that nix flakes are turned on --- nix/darwin/darwin-configuration.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nix/darwin/darwin-configuration.nix b/nix/darwin/darwin-configuration.nix index 1e5e0f3..ef5648e 100644 --- a/nix/darwin/darwin-configuration.nix +++ b/nix/darwin/darwin-configuration.nix @@ -1,6 +1,13 @@ { config, pkgs, inputs, ... }: { + nix = { + package = pkgs.nix; + extraOptions = '' + experimental-features = nix-command flakes + ''; + }; + imports = [ ./program-neovim.nix ]; @@ -78,11 +85,11 @@ curl wget jq - # TODO(jwall): Find a non broken sile package version and add it as an overlay spacebar coreutils watch iterm2 + # TODO(jwall): Find a non broken sile package version and add it as an overlay # sile # this is currently broken on darwin: https://github.com/NixOS/nixpkgs/issues/23018 # TODO add sonic-pi here if it supports the arch ]; @@ -93,7 +100,6 @@ # Auto upgrade nix package and the daemon service. services.nix-daemon.enable = true; - nix.package = pkgs.nix; #services.spacebar.enable = true; #services.spacebar.package = "${pkgs.spacebar}";