Skip to content

Commit

Permalink
refactor: standardize config file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamHsieh committed Jan 8, 2024
1 parent 560ddea commit 75ce000
Show file tree
Hide file tree
Showing 52 changed files with 6 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 6 additions & 7 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,19 @@ in
xdg.enable = true;

xdg.configFile = {
"nvim".source = link ".config/nvim";
"alacritty".source = link ".config/alacritty";
"starship.toml".source = link ".config/starship.toml";
"nvim".source = link "nvim";
"alacritty".source = link "alacritty";
"starship".source = link "starship";
"home-manager".source = link "..";
"zsh/.p10k.zsh".source = link "zsh/.p10k.zsh";
"clangd/config.yaml".text = ''
${lib.removeSuffix "\n" (builtins.readFile ../config/.config/clangd/config.yaml)}
${lib.removeSuffix "\n" (builtins.readFile ../config/clangd/config.yaml)}
Compiler: ${pkgs.gcc}/bin/g++
'';
};

home.file = {
".vimrc".source = link ".vimrc";
".tmux.conf".source = link ".tmux.conf";
".vimrc".source = link "vim/.vimrc";
};

nix = {
Expand Down Expand Up @@ -146,7 +145,7 @@ in
plugins = with pkgs.tmuxPlugins; [
{
plugin = prefix-highlight;
extraConfig = "source-file ~/.tmux.conf";
extraConfig = "source-file ${dotfilesDir}/config/tmux/tmux.conf";
}
extrakto
tmux-fzf
Expand Down

0 comments on commit 75ce000

Please sign in to comment.