summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-04-07 15:25:24 +0200
committerMel <mel@rnrd.eu>2026-04-07 15:25:24 +0200
commit25911fcecd5efd4c95a98f21b7110232cce7d50d (patch)
treea7ae5f93fc630cbc9b89d03f1a1bf2668f491d3f /modules
parenta7f0a80d370d591935db05a420010bdee7dac4b0 (diff)
downloadminerals-25911fcecd5efd4c95a98f21b7110232cce7d50d.tar.zst
minerals-25911fcecd5efd4c95a98f21b7110232cce7d50d.zip
Add desktop role for home-manager modules
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules')
-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;
-    };
   };
 }