From 25911fcecd5efd4c95a98f21b7110232cce7d50d Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 7 Apr 2026 15:25:24 +0200 Subject: Add desktop role for home-manager modules Signed-off-by: Mel --- modules/home/desktop.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modules/home/desktop.nix (limited to 'modules/home/desktop.nix') diff --git a/modules/home/desktop.nix b/modules/home/desktop.nix new file mode 100644 index 0000000..10b3bf5 --- /dev/null +++ b/modules/home/desktop.nix @@ -0,0 +1,30 @@ +{ ... }: + +{ + imports = [ + ./code.nix # vscode + ./zed.nix # zed editor + ]; + + xdg.configFile = { + # home-manager does not have the option to pass an alacritty + # config file directly. + "alacritty/alacritty.toml".source = ../../configs/alacritty.toml; + }; + + home.file = { + # base .vimrc for tools outside of vim, like the + # VSCode Vim plugin. + ".vimrc".source = ../../configs/.vimrc; + + # special .vimrc for the IdeaVim plugin in JetBrains IDEs. + # `source`s the normal ~/.vimrc and enables IdeaVim-specfic plugins. + ".ideavimrc".source = ../../configs/.ideavimrc; + }; + + home.sessionPath = [ + # add scripts to launch jetbrains products to path, + # like `clion`. + "$HOME/.local/share/JetBrains/Toolbox/scripts" + ]; +} -- cgit 1.4.1