From 3e208d20934bedd8cd7769f23f35cfae9d8e7d0d Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Fri, 14 Feb 2025 01:18:47 -0500 Subject: seth: simplify module structure Moving to mixins generally reduces the boilerplate in all configurations, and less custom "stuff" These are then enabled by the regular options in programs.nix for example Many of the other options (like desktops) also had little use in being abstracted as there's no situation where I'd *not* want them to be applied when said desktop is in use --- users/seth/shell.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 users/seth/shell.nix (limited to 'users/seth/shell.nix') diff --git a/users/seth/shell.nix b/users/seth/shell.nix new file mode 100644 index 0000000..6c5537c --- /dev/null +++ b/users/seth/shell.nix @@ -0,0 +1,18 @@ +{ config, ... }: + +{ + home = { + sessionVariables = { + EDITOR = "nvim"; + VISUAL = config.home.sessionVariables.EDITOR; + CARGO_HOME = "${config.xdg.dataHome}/cargo"; + LESSHISTFILE = "${config.xdg.stateHome}/less/history"; + }; + + shellAliases = { + diff = "diff --color=auto"; + g = "git"; + gs = "g status"; + }; + }; +} -- cgit v1.2.3