darwin: Ensure vim is default editor
nix-darwin sets `nano` as the default. :(
9e7c20ffd0/modules/environment/default.nix (L181)
This commit is contained in:
parent
8b3eb263a8
commit
d5a366be63
2 changed files with 15 additions and 10 deletions
|
@ -1,16 +1,20 @@
|
||||||
{ pkgs, system, ... }: {
|
{ pkgs, system, ... }: {
|
||||||
# List packages installed in system profile. To search by name, run:
|
environment = {
|
||||||
# $ nix-env -qaP | grep wget
|
# We'll use Vim globally.
|
||||||
environment.systemPackages = [
|
systemPackages = [
|
||||||
pkgs.vim
|
pkgs.vim
|
||||||
];
|
];
|
||||||
|
variables.EDITOR = "${pkgs.vim}/bin/vim";
|
||||||
|
};
|
||||||
|
|
||||||
# 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 = {
|
||||||
|
# Keep the latest version of Nix.
|
||||||
# Necessary for using flakes on this system.
|
package = pkgs.nix;
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
# Necessary for using flakes on this system.
|
||||||
|
settings.experimental-features = "nix-command flakes";
|
||||||
|
};
|
||||||
|
|
||||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
|
@ -105,7 +105,8 @@
|
||||||
# System-wide configuration
|
# System-wide configuration
|
||||||
./darwin/darwin.nix
|
./darwin/darwin.nix
|
||||||
# Our provided home-manager configuration
|
# Our provided home-manager configuration
|
||||||
home-manager.darwinModules.home-manager {
|
home-manager.darwinModules.home-manager
|
||||||
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue