Change to Firefox, generalize terminal apps, update Forgejo, simplify other files

This commit is contained in:
Jimbo 2025-02-22 02:21:44 -05:00
parent 63fc72eeb0
commit eda4cd528f
20 changed files with 81 additions and 94 deletions

View file

@ -1,9 +1,10 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
./firefox
./foot ./foot
./imv ./imv
./librewolf ./looking-glass
./mangohud ./mangohud
./mpv ./mpv
./obs ./obs

View file

@ -3,7 +3,6 @@
config = lib.mkIf config.home.desktop.enable { config = lib.mkIf config.home.desktop.enable {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = pkgs.librewolf;
profiles = let profiles = let
# FireFox css, based on https://github.com/Dook97/firefox-qutebrowser-userchrome # FireFox css, based on https://github.com/Dook97/firefox-qutebrowser-userchrome
themeFont = '' themeFont = ''
@ -263,25 +262,6 @@
${builtins.readFile ./quteFox.css} ${builtins.readFile ./quteFox.css}
''; '';
}; };
Misc = {
id = 2;
extensions = commonExtensions;
search = commonSearch;
bookmarks = commonBookmarks;
settings = commonSettings;
};
};
};
# Fixes
home.file = {
# Symlinks to Librewolf
".librewolf".source = config.lib.file.mkOutOfStoreSymlink "/home/${config.home.username}/.mozilla/firefox";
# Gnome theme
".mozilla/firefox/Misc/chrome".source = fetchTarball {
url = "https://github.com/rafaelmardojai/firefox-gnome-theme/archive/refs/tags/v132.zip";
sha256 = "095sv1ann2v7q5bfy65i118ylhp2vkpbgyf6fz84nd9yrx14rzwm";
}; };
}; };
}; };

View file

@ -0,0 +1,16 @@
{ config, ... }:
{
programs.looking-glass-client = {
enable = config.home.desktop.enable;
settings = {
input = {
rawMouse = true;
escapeKey = 62;
};
spice = {
enable = true;
audio = true;
};
};
};
}

View file

@ -2,12 +2,12 @@
{ {
imports = [ imports = [
./btop ./btop
./eza
./fastfetch ./fastfetch
./git ./git
./ncmpcpp ./ncmpcpp
./neovim ./neovim
./nh ./nh
./notfound
./ranger ./ranger
./spotdl ./spotdl
./tmux ./tmux

View file

@ -0,0 +1,10 @@
{ ... }:
{
programs.eza = {
enable = true;
git = true;
icons = "auto";
colors = "always";
extraOptions = [ "--group-directories-first" ];
};
}

View file

@ -1,4 +0,0 @@
{ ... }:
{
programs.command-not-found.enable = true;
}

View file

@ -35,8 +35,8 @@
command = ''mpv --shuffle --no-audio-display -- "$@"''; command = ''mpv --shuffle --no-audio-display -- "$@"'';
} }
{ {
condition = ''ext x?html?|pdf, has librewolf, X, flag f''; condition = ''ext x?html?|pdf, has firefox, X, flag f'';
command = ''librewolf -- "$@"''; command = ''firefox -- "$@"'';
} }
{ {
condition = ''ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f''; condition = ''ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f'';

View file

@ -7,7 +7,10 @@
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
theme = "agnoster"; theme = "agnoster";
plugins = [ "git" ]; plugins = [
"git"
"history"
];
}; };
initExtra = '' initExtra = ''
pfetch pfetch

View file

@ -14,7 +14,6 @@
# Shortcuts # Shortcuts
ff = "clear && fastfetch"; ff = "clear && fastfetch";
ip = "ip -c"; ip = "ip -c";
ls = "${pkgs.eza}/bin/eza -a --color=always --group-directories-first --icons";
cat = "${pkgs.bat}/bin/bat --paging never"; cat = "${pkgs.bat}/bin/bat --paging never";
copycat = "wl-copy <"; copycat = "wl-copy <";
myip = "curl ifconfig.co"; myip = "curl ifconfig.co";

View file

@ -14,7 +14,6 @@
spawn-at-startup "${pkgs.xwayland-satellite}/bin/xwayland-satellite" spawn-at-startup "${pkgs.xwayland-satellite}/bin/xwayland-satellite"
// Foreground // Foreground
//spawn-at-startup "librewolf" "-p" "Misc" "--name" "MiscBrowser"
spawn-at-startup "thunderbird" spawn-at-startup "thunderbird"
spawn-at-startup "vesktop" spawn-at-startup "vesktop"
''; '';

View file

@ -9,9 +9,8 @@
//// Launchers //// Launchers
// Browser // Browser
${primeMod}+F1 { spawn "sh" "-c" "librewolf -p Main --name MainBrowser | notify-send \"Main Browser\""; } ${primeMod}+F1 { spawn "sh" "-c" "firefox -p Main --name MainBrowser | notify-send \"Main Browser\""; }
${primeMod}+F2 { spawn "sh" "-c" "librewolf -p Alt --name AltBrowser | notify-send \"Alternate Browser\""; } ${primeMod}+F2 { spawn "sh" "-c" "firefox -p Alt --name AltBrowser | notify-send \"Alternate Browser\""; }
${primeMod}+F3 { spawn "sh" "-c" "librewolf -p Misc --name MiscBrowser | notify-send \"Miscellaneous Browser\""; }
// Virtual machines // Virtual machines
${primeMod}+F4 { spawn "sh" "-c" "virt-manager | notify-send \"Virtual Machines\""; } ${primeMod}+F4 { spawn "sh" "-c" "virt-manager | notify-send \"Virtual Machines\""; }

View file

@ -27,20 +27,16 @@
} }
// Etc // Etc
window-rule {
match app-id="looking-glass-client"
open-on-workspace "${config.ws.w2a}"
}
window-rule { window-rule {
match app-id="com.obsproject.Studio" match app-id="com.obsproject.Studio"
open-on-workspace "${config.ws.w4a}" open-on-workspace "${config.ws.w4a}"
} }
//// Layer rules (Uncomment after 0.1.11) // Layer rules
//layer-rule { layer-rule {
// match namespace="^notifications$" match namespace="^notifications$"
// block-out-from "screencast" block-out-from "screencast"
//} }
// Everything else // Everything else
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"

View file

@ -15,9 +15,9 @@
all-outputs = true; all-outputs = true;
tooltip = false; tooltip = false;
rewrite = { rewrite = {
"(.*) LibreWolf" = " $1"; "(.*) Mozilla Firefox" = " $1";
"LibreWolf" = " Firefox"; "Mozilla Firefox" = " Firefox";
"(.*) - LibreWolf Firefox" = "󰗃 $1"; "(.*) - Mozilla Firefox Firefox" = "󰗃 $1";
}; };
}; };

View file

@ -12,9 +12,9 @@
## Launchers ## Launchers
# Browser profiles # Browser profiles
"${primeMod}+F1" = ''exec librewolf -p Main --name MainBrowser | notify-send "Main Browser"''; "${primeMod}+F1" = ''exec firefox -p Main --name MainBrowser | notify-send "Main Browser"'';
"${primeMod}+F2" = ''exec librewolf -p Alt --name AltBrowser | notify-send "Alternate Browser"''; "${primeMod}+F2" = ''exec firefox -p Alt --name AltBrowser | notify-send "Alternate Browser"'';
"${primeMod}+F3" = ''exec librewolf -p Misc --name MiscBrowser | notify-send "Miscellaneous Browser"''; "${primeMod}+F3" = ''exec firefox -p Misc --name MiscBrowser | notify-send "Miscellaneous Browser"'';
# Virtual machines # Virtual machines
"${primeMod}+F4" = ''exec virt-manager | notify-send "Virtual Machines"''; "${primeMod}+F4" = ''exec virt-manager | notify-send "Virtual Machines"'';

View file

@ -65,7 +65,6 @@
{ class = "steam"; } { class = "steam"; }
{ app_id = "heroic"; } { app_id = "heroic"; }
]; ];
"22:${config.ws.w2a}" = [{ app_id = "looking-glass-client"; }];
"44:${config.ws.w4a}" = [{ app_id = "com.obsproject.Studio"; }]; "44:${config.ws.w4a}" = [{ app_id = "com.obsproject.Studio"; }];
}; };
focus.newWindow = "focus"; focus.newWindow = "focus";

View file

@ -3,16 +3,17 @@
users.users."${config.sysusers.main}" = { users.users."${config.sysusers.main}" = {
hashedPassword = config.secrets.mainAccPass; hashedPassword = config.secrets.mainAccPass;
isNormalUser = true; isNormalUser = true;
openssh.authorizedKeys.keyFiles = [
../../../../../../hosts/tower/id_ed25519.pub
../../../../../../hosts/envy/id_ed25519.pub
../../../../../../hosts/redmond/id_ed25519.pub
../../../../../../hosts/kitty/id_ed25519.pub
../../../../../../hosts/midas/id_ed25519.pub
../../../../../../hosts/prophet/id_ed25519.pub
];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
(builtins.readFile ../../../../../../hosts/tower/id_ed25519.pub)
(builtins.readFile ../../../../../../hosts/envy/id_ed25519.pub)
(builtins.readFile ../../../../../../hosts/redmond/id_ed25519.pub)
(builtins.readFile ../../../../../../hosts/kitty/id_ed25519.pub)
(builtins.readFile ../../../../../../hosts/midas/id_ed25519.pub)
(builtins.readFile ../../../../../../hosts/prophet/id_ed25519.pub)
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 Pixel9" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 Pixel9"
]; ];
extraGroups = [ extraGroups = [

View file

@ -9,8 +9,6 @@
}; };
}; };
systemd.tmpfiles.rules = [ "f /var/lib/systemd/linger/${config.sysusers.main}" ];
environment.persistence."/persist".directories = [ "/var/lib/bluetooth" ]; environment.persistence."/persist".directories = [ "/var/lib/bluetooth" ];
}; };
} }

View file

@ -3,39 +3,30 @@
options.system.libvirtd.enable = lib.mkEnableOption "Enable libvirtd services"; options.system.libvirtd.enable = lib.mkEnableOption "Enable libvirtd services";
config = lib.mkIf config.system.libvirtd.enable { config = lib.mkIf config.system.libvirtd.enable {
virtualisation = { virtualisation.libvirtd = {
libvirtd = { enable = true;
enable = true; onBoot = "ignore";
onBoot = "ignore"; onShutdown = "shutdown";
onShutdown = "shutdown"; qemu = {
qemu = { ovmf = {
ovmf = { enable = true;
enable = true; packages = with pkgs; [ OVMFFull.fd ];
packages = with pkgs; [ OVMFFull.fd ];
};
swtpm.enable = true;
}; };
vhostUserPackages = with pkgs; [ virtiofsd ];
swtpm.enable = true;
}; };
}; };
environment = { programs.virt-manager.enable = true;
systemPackages = with pkgs; [
virt-manager
virtiofsd
dnsmasq
spice-vdagent
looking-glass-client
];
persistence."/persist".directories = [ environment.persistence."/persist".directories = [
"/var/lib/libvirt/dnsmasq" "/var/lib/libvirt/dnsmasq"
"/var/lib/libvirt/nwfilter" "/var/lib/libvirt/nwfilter"
"/var/lib/libvirt/qemu" "/var/lib/libvirt/qemu"
"/var/lib/libvirt/secrets" "/var/lib/libvirt/secrets"
"/var/lib/libvirt/storage" "/var/lib/libvirt/storage"
"/var/lib/libvirt/swtpm" "/var/lib/libvirt/swtpm"
]; ];
};
# Needed to make NAT work # Needed to make NAT work
networking.firewall.trustedInterfaces = [ networking.firewall.trustedInterfaces = [
@ -43,6 +34,6 @@
"virbr1" "virbr1"
]; ];
systemd.tmpfiles.rules = [ "f /dev/shm/looking-glass 0660 ${config.sysusers.main} libvirtd -" ]; systemd.tmpfiles.rules = [ "f /dev/shm/looking-glass 0660 - libvirtd -" ];
}; };
} }

View file

@ -1,10 +1,11 @@
{ config, lib, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ ./nginx ]; imports = [ ./nginx ];
config = lib.mkIf config.system.server.enable { config = lib.mkIf config.system.server.enable {
services.forgejo = { services.forgejo = {
enable = true; enable = true;
package = pkgs.forgejo;
settings = { settings = {
server = { server = {
DOMAIN = "git.${config.domains.p2}"; DOMAIN = "git.${config.domains.p2}";
@ -33,8 +34,6 @@
services.ddclient.domains = [ "git.${config.domains.p2}" ]; services.ddclient.domains = [ "git.${config.domains.p2}" ];
environment.persistence."/persist".directories = [ environment.persistence."/persist".directories = [ "/var/lib/forgejo" ];
"/var/lib/forgejo"
];
}; };
} }