diff options
| author | seth <[email protected]> | 2023-10-01 10:41:09 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-10-01 10:49:46 -0400 |
| commit | a8630322f77dbb7be4810099a42352b9278996a1 (patch) | |
| tree | b8df66a7e5b9d8c31b27a4a9b357ff7e4b9d418f /parts/users/seth/shell/default.nix | |
| parent | 30f55e656d344e017f66ecbae8eb27cf13ba53bb (diff) | |
treewide!: flatten to parts/ layout
Diffstat (limited to 'parts/users/seth/shell/default.nix')
| -rw-r--r-- | parts/users/seth/shell/default.nix | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/parts/users/seth/shell/default.nix b/parts/users/seth/shell/default.nix new file mode 100644 index 0000000..5f7e24c --- /dev/null +++ b/parts/users/seth/shell/default.nix @@ -0,0 +1,79 @@ +{ + config, + pkgs, + ... +}: let + inherit (builtins) fromTOML readFile; + inherit (pkgs) fetchFromGitHub; +in { + imports = [ + ./bash.nix + ./fish.nix + ]; + + programs = { + bat = { + enable = true; + config = { + theme = "catppuccin"; + }; + themes = { + catppuccin = readFile (fetchFromGitHub { + owner = "catppuccin"; + repo = "bat"; + rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1"; + sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw="; + } + + "/Catppuccin-mocha.tmTheme"); + }; + }; + + eza = { + enable = true; + enableAliases = true; + icons = true; + }; + + starship = { + enable = true; + enableBashIntegration = false; + enableZshIntegration = false; + settings = + { + format = "$all"; + palette = "catppuccin_mocha"; + command_timeout = 50; + } + // fromTOML (readFile ./starship.toml) + // fromTOML (readFile + (fetchFromGitHub + { + owner = "catppuccin"; + repo = "starship"; + rev = "3e3e54410c3189053f4da7a7043261361a1ed1bc"; + sha256 = "sha256-soEBVlq3ULeiZFAdQYMRFuswIIhI9bclIU8WXjxd7oY="; + } + + "/palettes/mocha.toml")); + }; + }; + + home = { + sessionVariables = let + inherit (config.xdg) configHome dataHome stateHome; + in { + EDITOR = "nvim"; + VISUAL = "$EDITOR"; + GPG_TTY = "$(tty)"; + CARGO_HOME = "${dataHome}/cargo"; + RUSTUP_HOME = "${dataHome}/rustup"; + LESSHISTFILE = "${stateHome}/less/history"; + NPM_CONFIG_USERCONFIG = "${configHome}/npm/npmrc"; + }; + + shellAliases = { + diff = "diff --color=auto"; + g = "git"; + gs = "g status"; + }; + }; +} |
