Make home-manager config for ll-latitude-e5591 build again

This commit is contained in:
Lauren Lagarde 2025-06-23 22:26:22 -05:00
parent 478d31081a
commit 83a6b1c73c
78 changed files with 236 additions and 426 deletions

View file

@ -0,0 +1,10 @@
{ ... }: {
programs.chromium = {
enable = true;
extensions = [
{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # UBlock Origin
{ id = "dbepggeogbaibhgnhhndojpepiihcmeb"; } # Vimium
{ id = "naepdomgkenhinolocfifgehidddafch"; } # Browserpass
];
};
}

View file

@ -0,0 +1,61 @@
#{ pkgs-unstable, ... }: {
{ ... }: {
programs.firefox = {
enable = true;
#package = pkgs-unstable.firefox;
policies = {
DisableTelemetry = false;
DisablePocket = true;
DisableFirefoxStudies = true;
DontCheckDefaultBrowser = true;
SearchBar = "unified";
Preferences = {};
# about:debugging#/runtime/this-firefox
ExtensionSettings = {
# uBlock Origin
"uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed";
};
# Vimium
"{d7742d87-e61d-4b78-b8a1-b469842139fa}" = {
install_url = "https://addons.mozilla.org/firefox/downloads/file/4191523/vimium_ff-2.0.6.xpi";
installation_mode = "force_installed";
};
# New Tab Homepage
"{66E978CD-981F-47DF-AC42-E3CF417C1467}" = {
install_url = "https://addons.mozilla.org/firefox/downloads/file/4270256/new_tab_homepage-0.6.3resigned1.xpi";
installation_mode = "force_installed";
};
};
};
profiles.lauren.settings = {
"browser.uiCustomization.state" = ''
{"placements":{"widget-overflow-fixed-list":[],"unified-extensions-area":[],"nav-bar":["back-button","forward-button","stop-reload-button","customizableui-special-spring1","urlbar-container","customizableui-special-spring2","save-to-pocket-button","downloads-button","fxa-toolbar-menu-button","unified-extensions-button","browserpass_maximbaz_com-browser-action","_d7742d87-e61d-4b78-b8a1-b469842139fa_-browser-action","ublock0_raymondhill_net-browser-action","7esoorv3_alefvanoon_anonaddy_me-browser-action"],"toolbar-menubar":["menubar-items"],"TabsToolbar":["firefox-view-button","tabbrowser-tabs","new-tab-button","alltabs-button"],"PersonalToolbar":["import-button","personal-bookmarks"]},"seen":["developer-button","_d7742d87-e61d-4b78-b8a1-b469842139fa_-browser-action","browserpass_maximbaz_com-browser-action","ublock0_raymondhill_net-browser-action","7esoorv3_alefvanoon_anonaddy_me-browser-action"],"dirtyAreaCache":["nav-bar","PersonalToolbar","unified-extensions-area","toolbar-menubar","TabsToolbar"],"currentVersion":20,"newElementCount":2}
'';
"signon.rememberSignons" = false;
"browser.aboutConfig.showWarning" = false;
"widget.disable-workspace-management" = true;
"browser.toolbars.bookmarks.visibility" = "always";
# Attempting to minimize the amount of crap that happens at first startup
"app.normandy.first_run" = false;
"browser.startup.firstrunSkipsHomepage" = false;
"doh-rollout.doneFirstRun" = true;
"toolkit.telemetry.reportingpolicy.firstRun" = false;
"trailhead.firstrun.didSeeAboutWelcome" = true;
"trailhead.firstrun.branches" = "nofirstrun-empty";
"browser.aboutwelcome.enabled" = false;
"browser.newtab.extensionControlled" = true;
# Allow declarative management of extensions
# See: https://github.com/nix-community/home-manager/pull/6389
"extensions.webextensions.ExtensionStorageIDB.enabled" = false;
"browser.tabs.groups.enabled" = true;
};
};
}

View file

@ -0,0 +1,38 @@
{ pkgs, home-manager, ... }: {
programs.gnome-terminal = {
enable = true;
themeVariant = "system";
profile."0403cfe3-f423-4b1c-97f5-e0a581056e7e" = {
default = true;
visibleName = "Elementary";
audibleBell = false;
backspaceBinding = "ascii-backspace";
#scrollbackLines = null; #TODO
colors = {
palette = [
"#303030"
"#E1321A"
"#6AB017"
"#FFC005"
"#004F9E"
"#EC0048"
"#2AA7E7"
"#F2F2F2"
"#5D5D5D"
"#FF361E"
"#7BC91F"
"#FFD00A"
"#0071FF"
"#FF1D62"
"#4BB8FD"
"#A020F0"
];
foregroundColor = "#F2F2F2";
backgroundColor = "#101010";
};
};
};
}

View file

@ -0,0 +1,17 @@
{ ... }: {
programs.gpg = {
enable = true;
mutableKeys = true;
mutableTrust = true;
publicKeys = [
{
source = ../pubkeys/mlaga97_pubkey_20240419.asc;
trust = 5;
}
{
source = ../pubkeys/ajfunk27_pubkey_20240129.asc;
trust = 4;
}
];
};
}

View file

@ -0,0 +1,36 @@
{ pkgs, home-manager, ... }: {
programs.kitty = {
enable = true;
settings = {
enable_audio_bell = false;
background = "#101010";
foreground = "#f2f2f2";
color0 = "#303030";
color1 = "#E1321A";
color2 = "#6AB017";
color3 = "#FFC005";
color4 = "#004F9E";
color5 = "#EC0048";
color6 = "#2AA7E7";
color7 = "#F2F2F2";
color8 = "#5D5D5D";
color9 = "#FF361E";
color10 = "#7BC91F";
color11 = "#FFD00A";
color12 = "#0071FF";
color13 = "#FF1D62";
color14 = "#4BB8FD";
color15 = "#A020F0";
#cursor #facb7f";
#selection_background #403729
#selection_foreground #21211c
};
};
programs.bash.bashrcExtra = ''
# Fix KiTTY SSH Misbehavior
[[ "$TERM" == "xterm-kitty" ]] && alias ssh="TERM=xterm-256color ssh"
'';
}

View file

@ -0,0 +1,411 @@
{ pkgs, home-manager, ... }: {
home.packages = with pkgs; [
# TODO: Why no work?
#nerdfonts
siji
font-awesome
font-awesome_5
];
services.polybar = {
enable = true;
package = pkgs.polybar.override {
i3Support = true;
pulseSupport = true;
};
script = ''
PATH="$PATH:/run/current-system/sw/bin"
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
IFS=$'\n'
for m in $(xrandr --query | grep " connected"); do
MONITOR=$(echo $m | cut -d" " -f1)
BARSUFFIX=""
if [[ $m = *primary* ]]; then
BARSUFFIX=$BARSUFFIX"_main"
fi
if [[ $m = *1920x* ]]; then
BARSUFFIX=$BARSUFFIX"_1920"
fi
echo $BARSUFFIX
MONITOR=$MONITOR polybar --reload "bottom$BARSUFFIX" &
done
'';
settings = {
"colors" = {
background = "#222";
background-alt = "#444";
foreground = "#dfdfdf";
foreground-alt = "#999";
primary = "#ffb52a";
secondary = "#e60053";
alert = "#bd2c40";
};
"bar/bottom" = {
monitor = "\${env:MONITOR:}";
bottom = true;
radius = 0;
height = 25;
width = "100%";
padding = 1;
line-size = 3;
module-margin = 1;
background = "\${colors.background}";
foreground = "\${colors.foreground}";
font = [
"fixed:pixelsize=14;1"
"unifont:fontformat=truetype:size=12:antialias=false;0"
"FontAwesome5Free-Solid:weight=heavy:size=12"
#"siji:pixelsize=14;1"
];
modules-left = "hostname uptime bspwm i3";
modules-center = "mpd";
modules-right = "dirty root xbacklight volume wlan eth zram memory cpu battery date";
scroll-up = "i3wm-wsnext";
scroll-down = "i3wm-wsprev";
};
"bar/bottom_1920" = {
monitor = "\${env:MONITOR:}";
bottom = true;
radius = 0;
height = 25;
width = "100%";
padding = 1;
line-size = 3;
module-margin = 1;
background = "\${colors.background}";
foreground = "\${colors.foreground}";
font = [
"fixed:pixelsize=14;1"
"unifont:fontformat=truetype:size=12:antialias=false;0"
"FontAwesome5Free-Solid:weight=heavy:size=12"
#"siji:pixelsize=14;1"
];
modules-left = "hostname uptime bspwm i3";
modules-center = "mpd";
modules-right = "dirty volume wlan eth memory cpu battery date";
scroll-up = "i3wm-wsnext";
scroll-down = "i3wm-wsprev";
};
"bar/bottom_main" = {
monitor = "\${env:MONITOR:}";
bottom = true;
radius = 0;
height = 25;
width = "100%";
padding = 1;
line-size = 3;
module-margin = 1;
background = "\${colors.background}";
foreground = "\${colors.foreground}";
font = [
"fixed:pixelsize=14;1"
"unifont:fontformat=truetype:size=12:antialias=false;0"
"FontAwesome5Free-Solid:weight=heavy:size=12"
#"siji:pixelsize=14;1"
];
modules-left = "hostname uptime bspwm i3";
modules-center = "mpd";
modules-right = "dirty root xbacklight volume wlan eth zram memory cpu battery date tray";
scroll-up = "i3wm-wsnext";
scroll-down = "i3wm-wsprev";
};
"bar/bottom_main_1920" = {
monitor = "\${env:MONITOR:}";
bottom = true;
radius = 0;
height = 25;
width = "100%";
padding = 1;
line-size = 3;
module-margin = 1;
background = "\${colors.background}";
foreground = "\${colors.foreground}";
font = [
"fixed:pixelsize=14;1"
"unifont:fontformat=truetype:size=12:antialias=false;0"
"FontAwesome5Free-Solid:weight=heavy:size=12"
#"siji:pixelsize=14;1"
];
modules-left = "hostname uptime bspwm i3";
modules-center = "mpd";
modules-right = "dirty volume wlan eth memory cpu battery date tray";
scroll-up = "i3wm-wsnext";
scroll-down = "i3wm-wsprev";
};
"module/tray" = {
type = "internal/tray";
};
"module/root" = {
type = "internal/fs";
interval = "10";
mount = [ "/" ];
format-mounted = "<label-mounted> <bar-used>";
format-mounted-underline = "#f876cd";
label-mounted = "%mountpoint%%{F-} %free% of %total%";
label-mounted-foreground = "\${colors.foreground-alt}";
bar-used-width = 10;
bar-used-fill = "";
bar-used-empty = "";
bar-used-indicator = "";
bar-used-empty-foreground = "#444444";
format-prefix = " ";
format-prefix-foreground = "\${colors.foreground-alt}";
};
"module/battery" = {
type = "internal/battery";
format-charging = "<animation-charging> <label-charging>";
format-charging-underline = "#ffb52a";
format-discharging = "<ramp-capacity> <label-discharging>";
format-discharging-underline = "#ffb52a";
format-full-prefix = " ";
format-full-prefix-foreground = "\${colors.foreground-alt}";
format-full-underline = "#ffb52a";
ramp-capacity = [" " " " " " " " " "];
animation-charging = [" " " " " " " " " "];
animation-charging-framerate = 750;
};
"module/hostname" = {
type = "custom/script";
exec = "echo $(uname -n)";
interval = 256;
format = "<label>";
format-underline = "#bdf1e1";
format-prefix = " ";
format-prefix-foreground = "\${colors.foreground-alt}";
};
"module/uptime" = {
type = "custom/script";
exec = "echo $(uptime | sed 's|.*up|up|; s|,.*||')";
interval = 60;
format = "<label>";
format-underline = "#72fb81";
format-prefix = "";
format-prefix-foreground = "\${colors.foreground-alt}";
};
"module/dirty" = {
type = "custom/script";
exec = "grep -e Dirty: /proc/meminfo | sed 's/Dirty: *//; s/ kB/000/' | numfmt --to=iec --suffix=B | sed 's/\\([0-9]\\)\\([A-Z]\\)/\\1 \\2/'";
interval = 1;
format = "<label> Dirty";
format-underline = "#7f4849";
format-prefix = " ";
format-prefix-foreground = "\${colors.foreground-alt}";
};
"module/cpu" = {
type = "internal/cpu";
interval = 1;
label = "%percentage%%";
format = "<label> <ramp-coreload>";
format-underline = "#f90000";
ramp-coreload-spacing = 0;
ramp-coreload = ["" "" "" "" "" "" "" ""];
format-prefix = " ";
format-prefix-foreground = "\${colors.foreground-alt}";
};
"module/memory" = {
type = "internal/memory";
interval = 2;
label = "%gb_used%/%gb_total%";
format = "<label> <bar-used>";
format-underline = "#4bffdc";
bar-used-width = 10;
bar-used-fill = "";
bar-used-empty = "";
bar-used-indicator = "";
bar-used-empty-foreground = "#444444";
format-prefix = " ";
format-prefix-foreground = "\${colors.foreground-alt}";
};
"module/zram" = {
type = "internal/memory";
interval = 2;
label = "%gb_swap_used%/%gb_swap_total%";
format = "<label> <bar-swap-used>";
format-underline = "#256d7b";
bar-swap-used-width = 10;
bar-swap-used-fill = "";
bar-swap-used-empty = "";
bar-swap-used-indicator = "";
bar-swap-used-empty-foreground = "#444444";
format-prefix = " ";
format-prefix-foreground = "\${colors.foreground-alt}";
};
"module/date" = {
type = "internal/date";
interval = 1;
date = "%Y-%m-%d";
time = "%H:%M:%S";
label = "%date% %time%";
format-underline = "#0a6cf5";
format-prefix = " ";
format-prefix-foreground = "\${colors.foreground-alt}";
};
"module/volume" = {
type = "internal/pulseaudio";
interval = 5;
label-volume = "%percentage%%";
format-volume = "<ramp-volume> <label-volume> <bar-volume>";
format-volume-underline = "#0000aa";
ramp-volume = ["" "" ""];
ramp-volume-foreground = "\${colors.foreground-alt}";
label-muted = "sound muted";
format-muted-prefix = " ";
format-muted-prefix-foreground = "\${colors.foreground-alt}";
bar-volume-width = 10;
bar-volume-fill = "";
bar-volume-empty = "";
bar-volume-indicator = "";
bar-volume-empty-foreground = "#444444";
use-ui-max = false;
click-right = "pavucontrol";
middle-click = "blueman-manager";
};
"module/i3" = {
type = "internal/i3";
pin-workspaces = true;
label-mode-padding = 2;
label-mode-foreground = "#000";
label-mode-background = "\${colors.primary}";
label-focused = "%name%";
label-focused-background = "\${colors.background-alt}";
label-focused-underline = "\${colors.primary}";
label-focused-padding = 2;
label-unfocused = "%name%";
label-unfocused-padding = 2;
label-visible = "%name%";
label-visible-background = "\${colors.background-alt}";
label-visible-underline = "\${colors.primary}";
label-visible-padding = 2;
label-urgent = "%name%";
label-urgent-background = "\${colors.alert}";
label-urgent-padding = 2;
wrapping-scroll = false;
};
"module/wlan" = {
type = "internal/network";
interface-type = "wireless";
interval = 3;
#label-connected = "%ifname% %essid% (%local_ip%)";
label-connected = "%ifname% %essid%";
format-connected = "<ramp-signal> <label-connected>";
format-connected-underline = "#9f78e1";
label-disconnected = "%ifname% disconnected";
format-disconnected = "<label-disconnected>";
label-disconnected-foreground = "\${colors.foreground-alt}";
format-disconnected-underline = "\${self.format-connected-underline}";
ramp-signal = ["" "" "" "" ""];
ramp-signal-foreground = "\${colors.foreground-alt}";
};
"module/eth" = {
type = "internal/network";
interface-type = "wired";
interval = 3;
label-connected = "%ifname% - %local_ip% (%linkspeed%)";
format-connected-prefix = " ";
format-connected-prefix-foreground = "\${colors.foreground-alt}";
label-disconnected = "%ifname% disconnected";
label-disconnected-foreground = "\${colors.foreground-alt}";
format-connected-underline = "#55aa55";
format-disconnected-underline = "\${self.format-connected-underline}";
};
# Backlight?
};
};
}

View file

@ -0,0 +1,8 @@
{ ... }: {
programs.thunderbird.enable = true;
programs.thunderbird.profiles.lauren = {
isDefault = true;
withExternalGnupg = true;
};
}

View file

@ -0,0 +1,47 @@
{ pkgs, ... }: {
programs.vim = {
enable = true;
plugins = with pkgs.vimPlugins; [
rainbow
nerdtree nerdtree-git-plugin
vim-signify vim-openscad vim-javascript vim-jsx-pretty
];
extraConfig = ''
" Assorted BS
set nocompatible
source $VIMRUNTIME/defaults.vim
" Various line stuff
set number
set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2
set smartindent
" Highlight ES6 template strings
hi link javaScriptTemplateDelim String
hi link javaScriptTemplateVar Text
hi link javaScriptTemplateString String
" Enable JSDocs
let g:javascript_plugin_jsdoc = 1
" Folding stuff
set foldmethod=indent
set nofoldenable
" GitGutter stuff
set updatetime=100
" Stop hiding punctuation
set conceallevel=0
set background=dark
set t_Co=256
" Stop mousing
set mouse-=a
'';
};
}