summaryrefslogtreecommitdiff
path: root/modules/home
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home')
-rw-r--r--modules/home/common.nix25
-rw-r--r--modules/home/desktop.nix30
-rw-r--r--modules/home/development-server.nix26
3 files changed, 32 insertions, 49 deletions
diff --git a/modules/home/common.nix b/modules/home/common.nix
index 4379a2b..a7afb69 100644
--- a/modules/home/common.nix
+++ b/modules/home/common.nix
@@ -8,9 +8,7 @@ in
imports = [
../foundation/home
- ./shell.nix
- ./code.nix
- ./zed.nix
+ ./shell.nix # shell settings, fish in this case
];
programs = {
@@ -40,7 +38,6 @@ in
init.defaultBranch = "main";
pull.rebase = true;
};
-
};
direnv = {
@@ -49,26 +46,6 @@ in
};
};
- 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 = [
- "$HOME/.local/share/JetBrains/Toolbox/scripts"
- ];
-
home.packages = [
nx-script
];
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"
+ ];
+}
diff --git a/modules/home/development-server.nix b/modules/home/development-server.nix
index 3813acf..7dd0e80 100644
--- a/modules/home/development-server.nix
+++ b/modules/home/development-server.nix
@@ -2,35 +2,11 @@
{
imports = [
- ../foundation/home
-
- ./shell.nix
- ./zed.nix
+ ./zed.nix # zed editor, accessed remotely
];
programs = {
# make dev-server accessible from remote zed instance.
zed-editor.installRemoteServer = true;
-
- git = {
- enable = true;
- userName = "Mel";
- userEmail = "mel@rnrd.eu";
- signing = {
- key = "D75A C286 ACA7 00B4 D8EC 377D 2082 F8EC 11CC 009B";
- signByDefault = true;
- };
- ignores = [
- # ignore most vim swap-files
- "*~"
- "[._]*.sw?"
- ];
- extraConfig.init.defaultBranch = "main";
- };
-
- direnv = {
- enable = true;
- nix-direnv.enable = true;
- };
};
}