home: code readability improvements

This commit is contained in:
Aly Raffauf 2024-07-10 23:43:51 -04:00
parent fd556431e4
commit 59b3293571
15 changed files with 481 additions and 447 deletions

View file

@ -15,6 +15,7 @@
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
enableVteIntegration = true; enableVteIntegration = true;
shellOptions = [ shellOptions = [
"autocd" "autocd"
"cdspell" "cdspell"
@ -26,6 +27,7 @@
"globstar" "globstar"
"histappend" "histappend"
]; ];
initExtra = '' initExtra = ''
export PS1="[\[$(tput setaf 27)\]\u\[$(tput setaf 135)\]@\[$(tput setaf 45)\]\h:\[$(tput setaf 33)\]\w] \[$(tput sgr0)\]$ " export PS1="[\[$(tput setaf 27)\]\u\[$(tput setaf 135)\]@\[$(tput setaf 45)\]\h:\[$(tput setaf 33)\]\w] \[$(tput sgr0)\]$ "
''; '';

View file

@ -8,6 +8,7 @@
programs.chromium = { programs.chromium = {
enable = true; enable = true;
package = config.ar.home.apps.chromium.package; package = config.ar.home.apps.chromium.package;
extensions = [ extensions = [
{id = "enamippconapkdmgfgjchkhakpfinmaj";} # dearrow {id = "enamippconapkdmgfgjchkhakpfinmaj";} # dearrow
{id = "jldhpllghnbhlbpcmnajkpdmadaolakh";} # todoist {id = "jldhpllghnbhlbpcmnajkpdmadaolakh";} # todoist

View file

@ -40,9 +40,7 @@
LockDatabaseScreenLock = false; LockDatabaseScreenLock = false;
}; };
SSHAgent = { SSHAgent.Enabled = true;
Enabled = true;
};
}; };
xdg.configFile."keepassxc/keepassxc.ini".text = xdg.configFile."keepassxc/keepassxc.ini".text =

View file

@ -9,6 +9,7 @@
enable = true; enable = true;
mouse = true; mouse = true;
newSession = true; newSession = true;
plugins = with pkgs; [ plugins = with pkgs; [
tmuxPlugins.battery tmuxPlugins.battery
tmuxPlugins.better-mouse-mode tmuxPlugins.better-mouse-mode
@ -16,7 +17,9 @@
tmuxPlugins.resurrect tmuxPlugins.resurrect
tmuxPlugins.weather tmuxPlugins.weather
]; ];
terminal = "tmux-256color"; terminal = "tmux-256color";
extraConfig = '' extraConfig = ''
run-shell ${pkgs.tmuxPlugins.battery}/share/tmux-plugins/battery/battery.tmux run-shell ${pkgs.tmuxPlugins.battery}/share/tmux-plugins/battery/battery.tmux
run-shell ${pkgs.tmuxPlugins.cpu}/share/tmux-plugins/cpu/cpu.tmux run-shell ${pkgs.tmuxPlugins.cpu}/share/tmux-plugins/cpu/cpu.tmux

View file

@ -10,6 +10,7 @@
package = pkgs.vscodium; package = pkgs.vscodium;
enableUpdateCheck = false; enableUpdateCheck = false;
enableExtensionUpdateCheck = false; enableExtensionUpdateCheck = false;
userSettings = { userSettings = {
"diffEditor.ignoreTrimWhitespace" = false; "diffEditor.ignoreTrimWhitespace" = false;
"editor.fontFamily" = "'NotoSansM Nerd Font', 'monospace', monospace"; "editor.fontFamily" = "'NotoSansM Nerd Font', 'monospace', monospace";
@ -42,6 +43,7 @@
"[shellscript]" = { "[shellscript]" = {
"editor.defaultFormatter" = "foxundermoon.shell-format"; "editor.defaultFormatter" = "foxundermoon.shell-format";
}; };
"shellformat.flag" = "-i 4"; "shellformat.flag" = "-i 4";
"terminal.external.linuxExec" = lib.getExe config.ar.home.defaultApps.terminal; "terminal.external.linuxExec" = lib.getExe config.ar.home.defaultApps.terminal;

View file

@ -20,11 +20,13 @@
["sway/workspaces" "sway/scratchpad" "sway/mode"] ["sway/workspaces" "sway/scratchpad" "sway/mode"]
++ lib.optionals (config.ar.home.desktop.hyprland.tabletMode.menuButton) ++ lib.optionals (config.ar.home.desktop.hyprland.tabletMode.menuButton)
["custom/menu" "custom/hyprland-close"]; ["custom/menu" "custom/hyprland-close"];
modules-center = ["clock"]; modules-center = ["clock"];
modules-right = [ modules-right = [
"tray" "tray"
"group/hardware" "group/hardware"
]; ];
"hyprland/workspaces" = { "hyprland/workspaces" = {
"all-outputs" = true; "all-outputs" = true;
"format" = "{icon} {name}"; "format" = "{icon} {name}";
@ -32,18 +34,22 @@
"default" = "󰝥"; "default" = "󰝥";
"active" = "󰪥"; "active" = "󰪥";
}; };
"sort-by" = "id"; "sort-by" = "id";
}; };
"hyprland/submap" = { "hyprland/submap" = {
"on-click" = ''${lib.getExe' "on-click" = ''${lib.getExe'
config.wayland.windowManager.hyprland.package "hyprctl"} dispatch submap reset''; config.wayland.windowManager.hyprland.package "hyprctl"} dispatch submap reset'';
}; };
"hyprland/window" = { "hyprland/window" = {
"format" = ""; "format" = "";
"max-length" = 100; "max-length" = 100;
"separate-outputs" = true; "separate-outputs" = true;
"icon" = true; "icon" = true;
}; };
"sway/workspaces" = { "sway/workspaces" = {
"all-outputs" = true; "all-outputs" = true;
"format" = "{icon} {name}"; "format" = "{icon} {name}";
@ -53,12 +59,15 @@
}; };
"sort-by" = "id"; "sort-by" = "id";
}; };
"sway/mode" = { "sway/mode" = {
"on-click" = ''${lib.getExe' config.wayland.windowManager.sway.package "swaymsg"} mode default''; "on-click" = ''${lib.getExe' config.wayland.windowManager.sway.package "swaymsg"} mode default'';
}; };
"sway/window" = { "sway/window" = {
"max-length" = 100; "max-length" = 100;
}; };
"sway/scratchpad" = { "sway/scratchpad" = {
"format" = "{icon} {count}"; "format" = "{icon} {count}";
"show-empty" = false; "show-empty" = false;
@ -66,27 +75,33 @@
"tooltip" = true; "tooltip" = true;
"tooltip-format" = "{app}: {title}"; "tooltip-format" = "{app}: {title}";
}; };
"custom/sway-close" = { "custom/sway-close" = {
"on-click" = ''${lib.getExe' "on-click" = ''${lib.getExe'
config.wayland.windowManager.sway.package "swaymsg"} kill''; config.wayland.windowManager.sway.package "swaymsg"} kill'';
"format" = "󰅗"; "format" = "󰅗";
}; };
"custom/hyprland-close" = { "custom/hyprland-close" = {
"on-click" = ''${lib.getExe' "on-click" = ''${lib.getExe'
config.wayland.windowManager.hyprland.package "hyprctl"} dispatch killactive''; config.wayland.windowManager.hyprland.package "hyprctl"} dispatch killactive'';
"format" = "󰅗"; "format" = "󰅗";
}; };
"river/window" = { "river/window" = {
"max-length" = 100; "max-length" = 100;
}; };
"river/tags" = { "river/tags" = {
"num-tags" = 4; "num-tags" = 4;
}; };
"clock" = { "clock" = {
"tooltip-format" = "{:%Y-%m-%d | %H:%M}"; "tooltip-format" = "{:%Y-%m-%d | %H:%M}";
"interval" = 60; "interval" = 60;
"format" = "{:%I:%M%p}"; "format" = "{:%I:%M%p}";
}; };
"battery" = { "battery" = {
"states" = {"critical" = 20;}; "states" = {"critical" = 20;};
"format" = "{icon}"; "format" = "{icon}";
@ -95,6 +110,7 @@
{capacity}%: {timeTo}. {capacity}%: {timeTo}.
Draw: {power} watts.''; Draw: {power} watts.'';
}; };
"inhibitor" = { "inhibitor" = {
"what" = "sleep"; "what" = "sleep";
"format" = "{icon}"; "format" = "{icon}";
@ -103,6 +119,7 @@
"deactivated" = ""; "deactivated" = "";
}; };
}; };
"bluetooth" = { "bluetooth" = {
"format" = "󰂯"; "format" = "󰂯";
"format-disabled" = ""; # an empty format will hide the module "format-disabled" = ""; # an empty format will hide the module
@ -115,20 +132,24 @@
"tooltip-format-enumerate-connected" = "{device_alias} {device_address}"; "tooltip-format-enumerate-connected" = "{device_alias} {device_address}";
"on-click" = lib.getExe' pkgs.blueberry "blueberry"; "on-click" = lib.getExe' pkgs.blueberry "blueberry";
}; };
"pulseaudio" = { "pulseaudio" = {
"format" = "{icon}"; "format" = "{icon}";
"format-bluetooth" = "{volume}% {icon}󰂯"; "format-bluetooth" = "{volume}% {icon}󰂯";
"format-muted" = ""; "format-muted" = "";
"format-icons" = { "format-icons" = {
"headphones" = "󰋋"; "headphones" = "󰋋";
"handsfree" = "󰋎"; "handsfree" = "󰋎";
"headset" = "󰋎"; "headset" = "󰋎";
"default" = ["" "" ""]; "default" = ["" "" ""];
}; };
"scroll-step" = 5; "scroll-step" = 5;
"ignored-sinks" = ["Easy Effects Sink"]; "ignored-sinks" = ["Easy Effects Sink"];
"on-click" = "${lib.getExe pkgs.pavucontrol} -t 3"; "on-click" = "${lib.getExe pkgs.pavucontrol} -t 3";
}; };
"network" = { "network" = {
"format-wifi" = "{icon}"; "format-wifi" = "{icon}";
"format-ethernet" = "󰈀"; "format-ethernet" = "󰈀";
@ -140,21 +161,28 @@
"tooltip-format-disconnected" = "Disconnected"; "tooltip-format-disconnected" = "Disconnected";
"on-click" = "${lib.getExe config.ar.home.defaultApps.terminalEditor} --class nmtui -e ${pkgs.networkmanager}/bin/nmtui"; "on-click" = "${lib.getExe config.ar.home.defaultApps.terminalEditor} --class nmtui -e ${pkgs.networkmanager}/bin/nmtui";
}; };
"tray" = {"spacing" = 15;}; "tray" = {"spacing" = 15;};
"custom/logout" = { "custom/logout" = {
"on-click" = "${lib.getExe pkgs.wlogout}"; "on-click" = "${lib.getExe pkgs.wlogout}";
"format" = "󰗽"; "format" = "󰗽";
}; };
"custom/menu" = { "custom/menu" = {
"on-click" = "${lib.getExe pkgs.nwg-drawer} -mt 5"; "on-click" = "${lib.getExe pkgs.nwg-drawer} -mt 5";
"format" = "󰀻"; "format" = "󰀻";
}; };
"power-profiles-daemon" = { "power-profiles-daemon" = {
"format" = "{icon}"; "format" = "{icon}";
"tooltip-format" = '' "tooltip-format" = ''
Profile: {profile} Profile: {profile}
Driver: {driver}''; Driver: {driver}'';
"tooltip" = true; "tooltip" = true;
"format-icons" = { "format-icons" = {
"default" = "󱐌"; "default" = "󱐌";
"performance" = "󱐌"; "performance" = "󱐌";
@ -162,6 +190,7 @@
"power-saver" = "󰌪"; "power-saver" = "󰌪";
}; };
}; };
"group/hardware" = { "group/hardware" = {
"orientation" = "horizontal"; "orientation" = "horizontal";
modules = ["pulseaudio" "power-profiles-daemon" "battery" "custom/logout"]; modules = ["pulseaudio" "power-profiles-daemon" "battery" "custom/logout"];

View file

@ -17,13 +17,9 @@
workspaces-only-on-primary = true; workspaces-only-on-primary = true;
}; };
"org/cinnamon/desktop/interface" = { "org/cinnamon/desktop/interface".clock-use-24h = false;
clock-use-24h = false;
};
"org/gnome/desktop/interface" = { "org/gnome/desktop/interface".clock-format = "12h";
clock-format = "12h";
};
"org/cinnamon/settings-daemon/peripherals/touchscreen".orientation-lock = false; "org/cinnamon/settings-daemon/peripherals/touchscreen".orientation-lock = false;
@ -57,9 +53,7 @@
switch-to-workspace-9 = ["<Super>9"]; switch-to-workspace-9 = ["<Super>9"];
}; };
"org/cinnamon/desktop/keybindings" = { "org/cinnamon/desktop/keybindings".custom-list = ["__dummy__" "custom0"];
custom-list = ["__dummy__" "custom0"];
};
"org/cinnamon/desktop/keybindings/custom-keybindings/custom0" = { "org/cinnamon/desktop/keybindings/custom-keybindings/custom0" = {
binding = ["<Super>e"]; binding = ["<Super>e"];

View file

@ -6,6 +6,7 @@
}: { }: {
config = lib.mkIf config.ar.home.desktop.gnome.enable { config = lib.mkIf config.ar.home.desktop.gnome.enable {
dconf.enable = true; dconf.enable = true;
dconf.settings = { dconf.settings = {
"org/gnome/desktop/datetime".automatic-timezone = true; "org/gnome/desktop/datetime".automatic-timezone = true;
@ -55,6 +56,7 @@
xdg.mimeApps = { xdg.mimeApps = {
enable = true; enable = true;
defaultApplications = { defaultApplications = {
"x-scheme-handler/sms" = "org.gnome.Shell.Extensions.GSConnect.desktop"; "x-scheme-handler/sms" = "org.gnome.Shell.Extensions.GSConnect.desktop";
"x-scheme-handler/tel" = "org.gnome.Shell.Extensions.GSConnect.desktop"; "x-scheme-handler/tel" = "org.gnome.Shell.Extensions.GSConnect.desktop";

View file

@ -7,18 +7,16 @@
imports = [./randomWallpaper.nix ./redShift.nix]; imports = [./randomWallpaper.nix ./redShift.nix];
config = lib.mkIf config.ar.home.desktop.sway.enable { config = lib.mkIf config.ar.home.desktop.sway.enable {
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true;
checkConfig = false;
};
ar.home.theme.gtk.hideTitleBar = ar.home.theme.gtk.hideTitleBar =
if config.wayland.windowManager.sway.package == pkgs.sway if config.wayland.windowManager.sway.package == pkgs.sway
then true then true
else false; else false;
wayland = {
windowManager.sway.enable = true;
windowManager.sway.wrapperFeatures.gtk = true;
windowManager.sway.checkConfig = false;
wayland.windowManager.sway.config = let windowManager.sway.config = let
modifier = "Mod4"; modifier = "Mod4";
swaymsg = lib.getExe' config.wayland.windowManager.sway.package "swaymsg"; swaymsg = lib.getExe' config.wayland.windowManager.sway.package "swaymsg";
@ -87,6 +85,7 @@
bars = [{command = "${bar}";}]; bars = [{command = "${bar}";}];
modifier = "${modifier}"; modifier = "${modifier}";
colors.background = "${config.ar.home.theme.colors.primary}EE"; colors.background = "${config.ar.home.theme.colors.primary}EE";
colors.focused = { colors.focused = {
background = "${config.ar.home.theme.colors.primary}EE"; background = "${config.ar.home.theme.colors.primary}EE";
border = "${config.ar.home.theme.colors.primary}EE"; border = "${config.ar.home.theme.colors.primary}EE";
@ -94,6 +93,7 @@
indicator = "${config.ar.home.theme.colors.primary}EE"; indicator = "${config.ar.home.theme.colors.primary}EE";
text = "${config.ar.home.theme.colors.text}"; text = "${config.ar.home.theme.colors.text}";
}; };
colors.focusedInactive = { colors.focusedInactive = {
background = "${config.ar.home.theme.colors.inactive}AA"; background = "${config.ar.home.theme.colors.inactive}AA";
border = "${config.ar.home.theme.colors.inactive}AA"; border = "${config.ar.home.theme.colors.inactive}AA";
@ -101,6 +101,7 @@
indicator = "${config.ar.home.theme.colors.inactive}AA"; indicator = "${config.ar.home.theme.colors.inactive}AA";
text = "${config.ar.home.theme.colors.text}"; text = "${config.ar.home.theme.colors.text}";
}; };
colors.unfocused = { colors.unfocused = {
background = "${config.ar.home.theme.colors.inactive}AA"; background = "${config.ar.home.theme.colors.inactive}AA";
border = "${config.ar.home.theme.colors.inactive}AA"; border = "${config.ar.home.theme.colors.inactive}AA";
@ -108,19 +109,24 @@
indicator = "${config.ar.home.theme.colors.inactive}AA"; indicator = "${config.ar.home.theme.colors.inactive}AA";
text = "${config.ar.home.theme.colors.text}"; text = "${config.ar.home.theme.colors.text}";
}; };
defaultWorkspace = "workspace number 1"; defaultWorkspace = "workspace number 1";
focus = { focus = {
followMouse = "always"; followMouse = "always";
newWindow = "focus"; newWindow = "focus";
# mouseWarping = "container"; # mouseWarping = "container";
}; };
fonts = { fonts = {
names = ["${config.gtk.font.name}"]; names = ["${config.gtk.font.name}"];
style = "Bold"; style = "Bold";
size = config.gtk.font.size + 0.0; size = config.gtk.font.size + 0.0;
}; };
gaps.inner = 5; gaps.inner = 5;
gaps.outer = 5; gaps.outer = 5;
input = { input = {
"type:touchpad" = { "type:touchpad" = {
click_method = "clickfinger"; click_method = "clickfinger";
@ -130,17 +136,21 @@
tap = "enabled"; tap = "enabled";
tap_button_map = "lrm"; tap_button_map = "lrm";
}; };
"type:keyboard" = { "type:keyboard" = {
xkb_layout = "us"; xkb_layout = "us";
xkb_variant = "altgr-intl"; xkb_variant = "altgr-intl";
}; };
"1386:21186:Wacom_HID_52C2_Finger" = { "1386:21186:Wacom_HID_52C2_Finger" = {
map_to_output = "'Samsung Display Corp. 0x4152 Unknown'"; map_to_output = "'Samsung Display Corp. 0x4152 Unknown'";
}; };
"1386:21186:Wacom_HID_52C2_Pen" = { "1386:21186:Wacom_HID_52C2_Pen" = {
map_to_output = "'Samsung Display Corp. 0x4152 Unknown'"; map_to_output = "'Samsung Display Corp. 0x4152 Unknown'";
}; };
}; };
keybindings = { keybindings = {
# Apps # Apps
"${modifier}+B" = "exec ${browser}"; "${modifier}+B" = "exec ${browser}";
@ -243,6 +253,7 @@
"Ctrl+Mod1+M" = "mode move"; "Ctrl+Mod1+M" = "mode move";
"Ctrl+Mod1+R" = "mode resize"; "Ctrl+Mod1+R" = "mode resize";
}; };
modes = { modes = {
move = { move = {
Escape = "mode default"; Escape = "mode default";
@ -268,6 +279,7 @@
"0" = "move container to workspace number 10; workspace 10"; "0" = "move container to workspace number 10; workspace 10";
S = "move scratchpad"; S = "move scratchpad";
}; };
resize = { resize = {
Escape = "mode default"; Escape = "mode default";
Left = "resize shrink width 10 px"; Left = "resize shrink width 10 px";
@ -276,6 +288,7 @@
Right = "resize grow width 10 px"; Right = "resize grow width 10 px";
}; };
}; };
startup = [ startup = [
{ {
command = command =
@ -292,30 +305,25 @@
{command = lib.getExe' pkgs.swayosd "swayosd-server";} {command = lib.getExe' pkgs.swayosd "swayosd-server";}
{command = notifyd;} {command = notifyd;}
]; ];
output = { output = {
"BOE 0x095F Unknown" = { "BOE 0x095F Unknown".scale = "1.5";
scale = "1.5"; "LG Display 0x0569 Unknown".scale = "1.0";
}; "Samsung Display Corp. 0x4152 Unknown".scale = "2.0";
"LG Display 0x0569 Unknown" = { "LG Electronics LG ULTRAWIDE 311NTAB5M720".scale = "1.25";
scale = "1.0";
};
"Samsung Display Corp. 0x4152 Unknown" = {
scale = "2.0";
};
"LG Electronics LG ULTRAWIDE 311NTAB5M720" = {
scale = "1.25";
};
"Guangxi Century Innovation Display Electronics Co., Ltd 27C1U-D 0000000000001" = { "Guangxi Century Innovation Display Electronics Co., Ltd 27C1U-D 0000000000001" = {
scale = "1.5"; scale = "1.5";
pos = "-2560 0"; pos = "-2560 0";
}; };
"HP Inc. HP 24mh 3CM037248S " = { "HP Inc. HP 24mh 3CM037248S " = {
scale = "1.0"; scale = "1.0";
pos = "-1920 0"; pos = "-1920 0";
}; };
}; };
floating = {
criteria = [ floating.criteria = [
{app_id = ".blueman-manager-wrapped";} {app_id = ".blueman-manager-wrapped";}
{app_id = "Bitwarden";} {app_id = "Bitwarden";}
{app_id = "blueberry.py";} {app_id = "blueberry.py";}
@ -330,7 +338,7 @@
{window_role = "pop-up";} {window_role = "pop-up";}
{window_type = "dialog";} {window_type = "dialog";}
]; ];
};
window = { window = {
titlebar = false; titlebar = false;
commands = [ commands = [
@ -371,10 +379,11 @@
} }
]; ];
}; };
workspaceAutoBackAndForth = true; workspaceAutoBackAndForth = true;
}; };
wayland.windowManager.sway.extraConfig = let windowManager.sway.extraConfig = let
brightness = lib.getExe' pkgs.swayosd "swayosd-client"; brightness = lib.getExe' pkgs.swayosd "swayosd-client";
brightness_up = "${brightness} --brightness=raise"; brightness_up = "${brightness} --brightness=raise";
brightness_down = "${brightness} --brightness=lower"; brightness_down = "${brightness} --brightness=lower";
@ -441,6 +450,7 @@
else "" else ""
} }
''; '';
};
xdg.portal = { xdg.portal = {
enable = true; enable = true;

View file

@ -38,7 +38,6 @@
''; '';
in { in {
config = lib.mkIf config.ar.home.desktop.sway.randomWallpaper { config = lib.mkIf config.ar.home.desktop.sway.randomWallpaper {
# Packages that should be installed to the user profile.
home.packages = with pkgs; [swaybg sway-randomWallpaper]; home.packages = with pkgs; [swaybg sway-randomWallpaper];
wayland.windowManager.sway.config.startup = [ wayland.windowManager.sway.config.startup = [

View file

@ -6,8 +6,8 @@
}: { }: {
config = lib.mkIf config.ar.home.desktop.sway.redShift { config = lib.mkIf config.ar.home.desktop.sway.redShift {
home.packages = with pkgs; [gammastep]; home.packages = with pkgs; [gammastep];
wayland.windowManager.sway.config.startup = [ wayland.windowManager.sway.config.startup = [
# {command = "${pkgs.geoclue2}/libexec/geoclue-2.0/demos/agent";}
{command = "${lib.getExe pkgs.gammastep} -l 33.74:-84.38";} {command = "${lib.getExe pkgs.gammastep} -l 33.74:-84.38";}
]; ];
}; };

View file

@ -57,11 +57,9 @@ in {
size = lib.mkDefault 11; size = lib.mkDefault 11;
}; };
gtk3.extraConfig = lib.attrsets.optionalAttrs (cfg.darkMode) {gtk-application-prefer-dark-theme = 1;}; gtk3 = {
extraConfig = lib.attrsets.optionalAttrs (cfg.darkMode) {gtk-application-prefer-dark-theme = 1;};
gtk4.extraConfig = lib.attrsets.optionalAttrs (cfg.darkMode) {gtk-application-prefer-dark-theme = 1;}; extraCss = ''
gtk3.extraCss = ''
@define-color accent_bg_color ${cfg.colors.primary}; @define-color accent_bg_color ${cfg.colors.primary};
@define-color accent_color @accent_bg_color; @define-color accent_color @accent_bg_color;
@ -91,8 +89,12 @@ in {
'' ''
} }
''; '';
};
gtk4.extraCss = config.gtk.gtk3.extraCss; gtk4 = {
extraConfig = lib.attrsets.optionalAttrs (cfg.darkMode) {gtk-application-prefer-dark-theme = 1;};
extraCss = config.gtk.gtk3.extraCss;
};
}; };
qt = { qt = {

View file

@ -11,8 +11,8 @@
ref = "master"; ref = "master";
}; };
in { in {
".mozilla/firefox/default/chrome" = {inherit source;}; ".mozilla/firefox/default/chrome".source = source;
".mozilla/firefox/work/chrome" = {inherit source;}; ".mozilla/firefox/work/chrome".source = source;
}; };
programs.firefox = { programs.firefox = {
@ -39,12 +39,10 @@
force = true; force = true;
engines = { engines = {
"Bing" = { "Bing".metaData = {
metaData = {
hidden = true; hidden = true;
alias = "!bing"; alias = "!bing";
}; };
};
"Brave" = { "Brave" = {
definedAliases = ["!brave"]; definedAliases = ["!brave"];
@ -63,12 +61,10 @@
]; ];
}; };
"Google" = { "Google".metaData = {
metaData = {
hidden = true; hidden = true;
alias = "!google"; alias = "!google";
}; };
};
"Kagi" = { "Kagi" = {
definedAliases = ["!kagi"]; definedAliases = ["!kagi"];
@ -133,6 +129,7 @@
]; ];
}; };
}; };
order = [ order = [
"Brave" "Brave"
"Kagi" "Kagi"
@ -193,15 +190,12 @@
default = "Google"; default = "Google";
force = true; force = true;
engines = { engines = {
"Bing" = { "Bing".metaData = {
metaData = {
hidden = true; hidden = true;
alias = "!bing"; alias = "!bing";
}; };
};
"DuckDuckGo" = { "DuckDuckGo".metaData = {
metaData = {
hidden = true; hidden = true;
alias = "!ddg"; alias = "!ddg";
}; };
@ -210,7 +204,6 @@
}; };
}; };
}; };
};
xdg.desktopEntries.firework = { xdg.desktopEntries.firework = {
categories = ["Application" "Network" "WebBrowser"]; categories = ["Application" "Network" "WebBrowser"];

View file

@ -53,6 +53,8 @@ in {
-- --
Aly Raffauf (née Chace) Aly Raffauf (née Chace)
''; '';
showSignature = "append";
}; };
thunderbird = { thunderbird = {
@ -99,23 +101,21 @@ in {
inherit settings; inherit settings;
isDefault = true; isDefault = true;
}; };
work = {inherit settings;}; work.settings = settings;
}; };
}; };
}; };
xdg.desktopEntries.thunderwork = { xdg.desktopEntries.thunderwork = {
categories = ["Application" "Network" "Chat" "Email" "Feed" "GTK" "News"]; categories = ["Application" "Network" "Chat" "Email" "Feed" "GTK" "News"];
exec = "thunderbird -P work --name thunderwork %U";
comment = "Read and write e-mails or RSS feeds, or manage tasks on calendars."; comment = "Read and write e-mails or RSS feeds, or manage tasks on calendars.";
exec = "thunderbird -P work --name thunderwork %U";
genericName = "Email Client"; genericName = "Email Client";
icon = "thunderbird"; icon = "thunderbird";
mimeType = ["message/rfc822" "x-scheme-handler/mailto" "text/calendar" "text/x-vcard"]; mimeType = ["message/rfc822" "x-scheme-handler/mailto" "text/calendar" "text/x-vcard"];
name = "Thunderbird (work)"; name = "Thunderbird (work)";
settings.StartupWMClass = "thunderwork";
startupNotify = true; startupNotify = true;
terminal = false; terminal = false;
settings = {
StartupWMClass = "thunderwork";
};
}; };
} }

View file

@ -10,6 +10,7 @@ self: {
username = "dustin"; username = "dustin";
homeDirectory = "/home/dustin"; homeDirectory = "/home/dustin";
stateVersion = "24.05"; stateVersion = "24.05";
packages = with pkgs; [ packages = with pkgs; [
fractal fractal
libreoffice-fresh libreoffice-fresh
@ -24,9 +25,7 @@ self: {
xdg.mimeApps = { xdg.mimeApps = {
enable = true; enable = true;
defaultApplications = { defaultApplications."application/epub+zip" = "com.calibre_ebook.calibre.desktop;org.gnome.Evince.desktop;com.calibre_ebook.calibre.ebook-viewer.desktop;";
"application/epub+zip" = "com.calibre_ebook.calibre.desktop;org.gnome.Evince.desktop;com.calibre_ebook.calibre.ebook-viewer.desktop;";
};
}; };
ar.home = { ar.home = {