Adapts home manager config for nvim and wezterm

- Fixes symlinks for configuration folders
- Installs wezterm as homebrew cask so nix-generated config does not
  interfere with symlinked config files
This commit is contained in:
Dennis Schoepf 2025-01-30 23:27:57 +01:00
parent c8907c8705
commit 99198a910e
4 changed files with 15 additions and 8 deletions

View file

@ -10,6 +10,8 @@
GOPATH = "$HOME/go";
};
xdg.enable = true;
imports = [
./modules/git
./modules/fish

View file

@ -1,5 +1,9 @@
{ config, ... }:
{
home.file.".config/nvim" = {
source = ./config;
xdg.configFile."nvim" = {
# mkOutOfStoreSymlink needs an absolute path, otherwise it does not work: https://github.com/nix-community/home-manager/issues/676#issuecomment-1595795685
# TODO: At least make the location of the config folder dynamic so that it works on other machines
source = config.lib.file.mkOutOfStoreSymlink /Users/dennis/dev/nix-config/home/modules/nvim/config;
};
}

View file

@ -1,9 +1,9 @@
{
programs.wezterm = {
enable = true;
};
{ config, ... }:
home.file.".config/wezterm" = {
source = ./config;
{
xdg.configFile."wezterm" = {
# mkOutOfStoreSymlink needs an absolute path, otherwise it does not work: https://github.com/nix-community/home-manager/issues/676#issuecomment-1595795685
# TODO: At least make the location of the config folder dynamic so that it works on other machines
source = config.lib.file.mkOutOfStoreSymlink /Users/dennis/dev/nix-config/home/modules/wezterm/config;
};
}