From e57ac2ee71ef7b889ae254b9085abedcbec952df Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sun, 26 Aug 2018 14:32:23 +0200 Subject: [PATCH] simple: add environment.darwinConfig example --- modules/examples/lnl.nix | 3 +++ modules/examples/simple.nix | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix index 90b67796..c012cf7f 100644 --- a/modules/examples/lnl.nix +++ b/modules/examples/lnl.nix @@ -1,4 +1,5 @@ { config, lib, pkgs, ... }: + { system.defaults.NSGlobalDomain.AppleKeyboardUIMode = 3; system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false; @@ -324,6 +325,8 @@ fi ''; + environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix"; + nix.nixPath = [ # Use local nixpkgs checkout instead of channels. "darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix" diff --git a/modules/examples/simple.nix b/modules/examples/simple.nix index 9f18ef1e..1efbdb24 100644 --- a/modules/examples/simple.nix +++ b/modules/examples/simple.nix @@ -7,6 +7,10 @@ [ pkgs.vim ]; + # Use a custom configuration.nix location. + # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix + # environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix"; + # Auto upgrade nix package and the daemon service. # services.nix-daemon.enable = true; # nix.package = pkgs.nix;