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

View File

@@ -7,24 +7,23 @@ home = Path.home().resolve().absolute()
dotdir = Path(__file__).parent.resolve().absolute()
simple = [
"ideavimrc",
"lein",
]
simple_migrated = [
"ideavimrc",
"gitconfig",
"tmux.conf",
"vimrc",
]
simple_migrated = [
"gitconfig",
]
targeted = {
"doom": ".doom.d",
"kitty": ".config/kitty",
"xonsh/rc.xsh": ".xonshrc",
}
targeted_migrated = {
"doom": ".doom.d",
"kitty": ".config/kitty",
}

View File

@@ -38,6 +38,7 @@
./modules/direnv.nix
./modules/emacs.nix
./modules/work.nix
./modules/dotfiles.nix
];
fonts.fontconfig.enable = true;

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";
};
}