mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-30 19:54:43 +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, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
system.defaults.NSGlobalDomain.AppleKeyboardUIMode = 3;
|
system.defaults.NSGlobalDomain.AppleKeyboardUIMode = 3;
|
||||||
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
|
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
|
||||||
|
@ -324,6 +325,8 @@
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
|
||||||
|
|
||||||
nix.nixPath =
|
nix.nixPath =
|
||||||
[ # Use local nixpkgs checkout instead of channels.
|
[ # Use local nixpkgs checkout instead of channels.
|
||||||
"darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix"
|
"darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix"
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
[ pkgs.vim
|
[ 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.
|
# Auto upgrade nix package and the daemon service.
|
||||||
# services.nix-daemon.enable = true;
|
# services.nix-daemon.enable = true;
|
||||||
# nix.package = pkgs.nix;
|
# nix.package = pkgs.nix;
|
||||||
|
|
Loading…
Add table
Reference in a new issue