summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/common/home.nix1
-rw-r--r--home/common/modules/xdg_ninja.nix15
2 files changed, 16 insertions, 0 deletions
diff --git a/home/common/home.nix b/home/common/home.nix
index 276ffcf..b1014e8 100644
--- a/home/common/home.nix
+++ b/home/common/home.nix
@@ -7,6 +7,7 @@ in {
./modules/shell.nix
./modules/xdgdirs.nix
./modules/mimeapps.nix
+ ./modules/xdg_ninja.nix
];
programs.home-manager.enable = true;
diff --git a/home/common/modules/xdg_ninja.nix b/home/common/modules/xdg_ninja.nix
new file mode 100644
index 0000000..614454b
--- /dev/null
+++ b/home/common/modules/xdg_ninja.nix
@@ -0,0 +1,15 @@
+{ config, lib, ... }: let
+ bashHistory = config.xdg.stateHome + "/bash/history";
+in {
+ home.activation.init = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
+ run --silence mkdir -p ${builtins.dirOf bashHistory}
+ '';
+
+ gtk.gtk2.configLocation =
+ config.xdg.configHome + "/gtk-2.0/gtkrc";
+
+ home.sessionVariables = {
+ HISTFILE = bashHistory;
+ GOPATH = config.xdg.dataHome + "/go";
+ };
+}