Skip to content

Commit

Permalink
terminal + gnome configs
Browse files Browse the repository at this point in the history
  • Loading branch information
anna328p committed Jan 10, 2025
1 parent fb8a3b4 commit ab0a4a8
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 1,179 deletions.
7 changes: 3 additions & 4 deletions common/workstation/gui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
e.appindicator
e.transmission-daemon-indicator-ng
e.blur-my-shell
e.battery-time-2
];

environment.variables = {
Expand Down Expand Up @@ -95,7 +96,7 @@
in overrideList [
"firefox-developer-edition" "discord"
"org.telegram.desktop"
"org.gnome.Nautilus" "ghostty"
"org.gnome.Nautilus" "com.mitchellh.ghostty"
"logseq"
];
};
Expand Down Expand Up @@ -139,8 +140,6 @@

# Email client
geary.enable = true;

gnome-terminal.enable = true;
};

# Allow using extensions.gnome.org in firefox
Expand All @@ -150,6 +149,6 @@

xdg.terminal-exec = {
enable = true;
settings.default = [ "Alacritty.desktop" ];
settings.default = [ "com.mitchellh.ghostty.desktop" ];
};
}
4 changes: 2 additions & 2 deletions common/workstation/sound.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
nixpkgs.config.pulseaudio = true;

# ...but disable PulseAudio...
hardware.pulseaudio.enable = false;
services.pulseaudio.enable = false;

# ...and use PipeWire instead!
# ...and use PipeWire instead
services.pipewire = {
enable = true;

Expand Down
1,209 changes: 43 additions & 1,166 deletions home/base/files/zsh/p10k.zsh

Large diffs are not rendered by default.

17 changes: 13 additions & 4 deletions home/base/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

{
home.shellAliases = {
ls = "eza";
ls = "eza --hyperlink -F";
ll = "ls -l --smart-group";

":w" = "sync";
":q" = "exit";
Expand Down Expand Up @@ -47,29 +48,37 @@
autoload zargs
setopt GLOB_DOTS
unsetopt INTERACTIVE_COMMENTS
for i in util escesc autopushd; do
source ${files/zsh/snippets}/$i.zsh
done
export ZLE_RPROMPT_INDENT=0
source ~/.config/zsh/.p10k.zsh
unalias ll
'';

prezto = {
enable = true;

pmodules = [
"environment"
"helper"
"utility"
"editor"
"history"
"directory"
"spectrum"
"helper"
"utility"
"completion"
"history-substring-search"
];

editor.dotExpansion = true;

utility.safeOps = false;
terminal.autoTitle = true;
};
};

Expand Down
2 changes: 1 addition & 1 deletion home/base/tmux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
bind-key -n C-j detach
set-option -ga terminal-features \
",ghostty:clipboard:cstyle:extkeys:focus:hyperlinks:margins:osc7:overline:RGB:strikethrough:sync:usstyle:"
",*ghostty:clipboard:cstyle:extkeys:focus:hyperlinks:margins:osc7:overline:RGB:strikethrough:sync:usstyle:"
set-option -ga terminal-features ",xterm-256color:hyperlinks:RGB:"
Expand Down
1 change: 1 addition & 0 deletions home/workstation/dconf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"[email protected]"
"blur-my-shell@aunetx"
"[email protected]"
"[email protected]"
];
};

Expand Down
17 changes: 15 additions & 2 deletions home/workstation/shell.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{ ... }:
{ pkgs, config, lib, L, ... }:

{
let
scheme = config.colorScheme;
colorsPrefixed = lib.mapAttrs (_: v: "#${v}") scheme.palette;
in {
home.shellAliases = let
t = " --show-trace";
k = " --keep-going";
Expand Down Expand Up @@ -37,6 +40,16 @@
en = "/etc/nixos";
};

initExtraFirst = let
base16Config = let
fn = name: value: "zstyle :base16:colors ${name} '${value}'";
in
L.concatLines (L.mapSetEntries fn colorsPrefixed);
in ''
${base16Config}
zstyle :base16 available true
'';

prezto = {
pmodules = [
"tmux"
Expand Down

0 comments on commit ab0a4a8

Please sign in to comment.