Manage more dotfiles with Nix

This commit is contained in:
2022-09-01 12:49:10 -07:00
parent 087e65f468
commit d8fa404971
3 changed files with 23 additions and 8 deletions

15
nix/modules/dotfiles.nix Normal file
View File

@@ -0,0 +1,15 @@
# Configuration of dotfile symlinks for programs
# not fully manged by home-manager
{ config, lib, pkgs, ... }:
with config.lib.file;
let dotdir = "${config.home.homeDirectory}/.dotfiles";
in
{
xdg.configFile = {
"tmux/tmux.conf".source = ../../tmux.conf;
"vim/vimrc".source = ../../vimrc;
"ideavim/ideavimrc".source = ../../ideavimrc;
"kitty".source = mkOutOfStoreSymlink "${dotdir}/kitty";
"doom".source = mkOutOfStoreSymlink "${dotdir}/doom";
};
}