Manage more dotfiles with Nix
This commit is contained in:
15
deploy.py
15
deploy.py
@@ -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",
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
15
nix/modules/dotfiles.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user