diff --git a/deploy.py b/deploy.py index 9b3d327..8413781 100755 --- a/deploy.py +++ b/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", } diff --git a/nix/home.nix b/nix/home.nix index 088cd40..4c16ea7 100644 --- a/nix/home.nix +++ b/nix/home.nix @@ -38,6 +38,7 @@ ./modules/direnv.nix ./modules/emacs.nix ./modules/work.nix + ./modules/dotfiles.nix ]; fonts.fontconfig.enable = true; diff --git a/nix/modules/dotfiles.nix b/nix/modules/dotfiles.nix new file mode 100644 index 0000000..9759d5d --- /dev/null +++ b/nix/modules/dotfiles.nix @@ -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"; + }; +}