base: make vim default editor

This commit is contained in:
2026-04-07 13:20:40 +02:00
parent 6841a01739
commit 0762150bca
2 changed files with 10 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }:
{ config, pkgs, inputs, lib, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@@ -21,9 +21,15 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment = {
systemPackages = with pkgs; [ vim ripgrep xdg-utils webcord ];
systemPackages = with pkgs; [
vim
ripgrep
xdg-utils
webcord
element-desktop
];
shells = with pkgs; [ bash ];
sessionVariables.EDITOR = lib.mkDefault "vim";
};
hardware.bluetooth.enable = true;

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
imports = [
./direnv.nix
@@ -34,7 +34,7 @@
monocraft
];
environment.sessionVariables.EDITOR = "hx";
environment.sessionVariables.EDITOR = lib.mkForce "hx";
environment.shells = with pkgs; [ nushell bash ];
users.users.fredrikr.shell = pkgs.nushell;