mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
simple: add environment.darwinConfig example
This commit is contained in:
parent
f473b21c9f
commit
e57ac2ee71
2 changed files with 7 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue