From 9fe3f6620e91ae9efa8258c010abd0b094d88944 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 15 Jul 2024 23:14:04 +0530 Subject: home/xdg_ninja: init --- home/common/modules/xdg_ninja.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 home/common/modules/xdg_ninja.nix (limited to 'home/common/modules') 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"; + }; +} -- cgit v1.2.3