This commit is contained in:
alsaiduq-lab 2025-11-09 11:26:46 -07:00
parent ffbf9e08f2
commit 57bbe33fbf
6 changed files with 16 additions and 303 deletions

View file

@ -138,8 +138,7 @@
hostPlatform = system; hostPlatform = system;
overlays = [ overlays = [
(final: prev: { (final: prev: {
ollama = unstablePkgs.ollama-cuda; rpcs3 = unstablePkgs.rpcs3;
#rpcs3 = unstablePkgs.rpcs3;
quickshell = unstable.legacyPackages.${system}.quickshell; quickshell = unstable.legacyPackages.${system}.quickshell;
ghostty = inputs.ghostty.packages.${system}.default; ghostty = inputs.ghostty.packages.${system}.default;
hu-tao-animated-cursor = inputs.hu-tao-cursor.packages.${system}.default; hu-tao-animated-cursor = inputs.hu-tao-cursor.packages.${system}.default;

View file

@ -1,286 +0,0 @@
{
config,
pkgs,
...
}: {
programs.anyrun = {
enable = true;
config = {
x = {fraction = 0.5;};
y = {fraction = 0.3;};
width = {absolute = 600;};
height = {absolute = 0;};
hideIcons = false;
ignoreExclusiveZones = false;
layer = "overlay";
hidePluginInfo = false;
closeOnClick = true;
showResultsImmediately = false;
maxEntries = 8;
plugins = [
"${pkgs.anyrun}/lib/libapplications.so"
"${pkgs.anyrun}/lib/libdictionary.so"
"${pkgs.anyrun}/lib/libkidex.so"
"${pkgs.anyrun}/lib/librandr.so"
"${pkgs.anyrun}/lib/librink.so"
"${pkgs.anyrun}/lib/libshell.so"
"${pkgs.anyrun}/lib/libstdin.so"
"${pkgs.anyrun}/lib/libsymbols.so"
"${pkgs.anyrun}/lib/libtranslate.so"
"${pkgs.anyrun}/lib/libwebsearch.so"
];
};
extraCss = ''
* {
all: unset;
font-family: "Clear Sans", monospace;
font-size: 12px;
}
#window {
background: transparent;
}
#main {
background-color: rgba(30, 32, 48, 0.95);
border: 2px solid #82aaff;
border-radius: 16px;
padding: 8px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
#entry {
background-color: transparent;
color: #c8d3f5;
padding: 12px 16px;
border-radius: 8px;
margin: 4px 0;
transition: all 0.2s ease;
}
#entry:selected {
background-color: #2f334d;
border-left: 3px solid #82aaff;
}
#entry:hover {
background-color: rgba(47, 51, 77, 0.5);
}
#entry #match {
color: #c8d3f5;
padding: 4px;
}
#entry #match:selected {
color: #82aaff;
font-weight: bold;
}
box#main entry {
color: #828bb8;
}
box#main entry:selected {
color: #86e1fc;
}
#plugin {
color: #86e1fc;
font-weight: bold;
padding: 8px 16px;
margin-top: 4px;
border-top: 1px solid rgba(130, 170, 255, 0.3);
}
#match-desc {
color: #828bb8;
font-size: 12px;
opacity: 0.8;
}
list#main {
padding: 8px;
}
scrollbar {
background-color: transparent;
}
scrollbar slider {
background-color: #2f334d;
border-radius: 8px;
min-width: 6px;
}
scrollbar slider:hover {
background-color: #82aaff;
}
image {
margin-right: 8px;
opacity: 0.9;
}
'';
extraConfigFiles = {
"websearch.ron".text = ''
Config(
prefix: "?",
engines: [Custom]
)
Custom(
name: "searxng",
url: "127.0.0.1:11212",
)
'';
"dictionary.ron".text = ''
Config(
prefix: "D ",
max_entries: 5,
)
'';
"translate.ron".text = ''
Config(
prefix: "T ",
language_delimiter: ">",
max_entries: 5,
)
'';
"symbols.ron".text = ''
Config(
prefix: "S ",
symbols: {
"alpha": "α",
"beta": "β",
"gamma": "γ",
"delta": "δ",
"epsilon": "ε",
"lambda": "λ",
"mu": "μ",
"pi": "π",
"sigma": "σ",
"omega": "ω",
"check": "",
"cross": "",
"star": "",
"heart": "",
"shrug": "¯\\_()_/¯",
"jhha": "",
"jhhe": "",
"jhwo": "",
"jhn": "",
"jhka": "",
"jhki": "",
"jhku": "",
"jhke": "",
"jhko": "",
"jhsa": "",
"jhshi": "",
"jhsu": "",
"jhse": "",
"jhso": "",
"jhta": "",
"jhchi": "",
"jhtsu": "",
"jhte": "",
"jhto": "",
"jhna": "",
"jhni": "",
"jhnu": "",
"jhne": "",
"jhno": "",
"jhma": "",
"jhmi": "",
"jhmu": "",
"jhme": "",
"jhmo": "",
"jhya": "",
"jhyu": "",
"jhyo": "",
"jhra": "",
"jhri": "",
"jhru": "",
"jhre": "",
"jhro": "",
"jhwa": "",
"jkha": "",
"jkhe": "",
"jkwo": "",
"jkn": "",
"jkka": "",
"jkki": "",
"jkku": "",
"jkku": "",
"jkko": "",
"jksa": "",
"jkshi": "",
"jksu": "",
"jkse": "",
"jkso": "",
"jkta": "",
"jkchi": "",
"jktsu": "",
"jkte": "",
"jkto": "",
"ichiK": "",
"niK": "",
"sanK": "",
"yonK": "",
"goK": "",
"rokuK": "",
"nanaK": "",
"hachi": "",
"kyuu": "",
"jyuu": "",
"hyaku": "",
"senK": "",
"manK": "",
"j~": "",
"j,": "",
"j.": "",
},
max_entries: 5,
)
'';
"shell.ron".text = ''
Config(
prefix: "SH ",
shell: Some("${config.theme.Shell}"),
)
'';
"randr.ron".text = ''
Config(
prefix: ":randr",
max_entries: 5,
)
'';
"applications.ron".text = ''
Config(
desktop_actions: false,
max_entries: 10,
terminal: Some("${config.theme.Terminal}"),
)
'';
# cant get this to work for some reason
#"nix-run.ron".text = ''
# Config(
# prefix: ":nr",
# allow_unfree: true,
# channel: "nixpkgs-unstable",
# max_entries: 5,
# )
#'';
};
};
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.bambu-studio];
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.hyprspace];
}

View file

@ -16,6 +16,7 @@
in { in {
home.packages = with pkgs; [ home.packages = with pkgs; [
mpv mpv
mpvpaper
mpvScripts.thumbfast mpvScripts.thumbfast
]; ];
home.file.".config/mpv/mpv.conf".text = '' home.file.".config/mpv/mpv.conf".text = ''

View file

@ -109,19 +109,24 @@ stdenvNoCC.mkDerivation rec {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/{opt/thorium,bin,share/{applications,icons}} mkdir -p $out/{opt/thorium,bin,share/{applications,icons/hicolor/256x256/apps}}
cp -r $(find opt -type d -name thorium | head -1)/* $out/opt/thorium/ cp -r $(find opt -type d -name thorium | head -1)/* $out/opt/thorium/
rm -f $out/opt/thorium/libqt{5,6}_shim.so rm -f $out/opt/thorium/libqt{5,6}_shim.so
ln -sf $out/opt/thorium/thorium $out/bin/thorium ln -sf $out/opt/thorium/thorium $out/bin/thorium
ln -sf $out/bin/thorium $out/bin/thorium-browser ln -sf $out/bin/thorium $out/bin/thorium-browser
[ -f usr/share/applications/thorium*.desktop ] && sed -E \ if [ -f usr/share/applications/thorium*.desktop ]; then
-e "s|^Exec=.*|Exec=$out/bin/thorium %U|" \ sed -E \
-e "s|^Icon=.*|Icon=thorium|" \ -e "s|^Exec=.*|Exec=$out/bin/thorium %U|" \
usr/share/applications/thorium*.desktop > $out/share/applications/thorium.desktop -e "s|^Icon=.*|Icon=thorium|" \
[ -d usr/share/icons ] && cp -r usr/share/icons/* $out/share/icons/ usr/share/applications/thorium*.desktop > $out/share/applications/thorium.desktop
[ -d usr/share/pixmaps ] && cp -r usr/share/pixmaps/* $out/share/icons/ fi
[ ! -d "$out/share/icons/hicolor" ] && mkdir -p $out/share/icons/hicolor/256x256/apps && \ [ -d usr/share/icons ] && cp -r usr/share/icons/* $out/share/icons/ || true
find $out/opt/thorium -name "product_logo_*.png" -exec cp {} $out/share/icons/hicolor/256x256/apps/thorium.png \; -quit [ -d usr/share/pixmaps ] && cp -r usr/share/pixmaps/* $out/share/icons/ || true
if [ -f $out/opt/thorium/product_logo_256.png ]; then
cp $out/opt/thorium/product_logo_256.png $out/share/icons/hicolor/256x256/apps/thorium.png
elif [ -f $out/opt/thorium/thorium.png ]; then
cp $out/opt/thorium/thorium.png $out/share/icons/hicolor/256x256/apps/thorium.png
fi
runHook postInstall runHook postInstall
''; '';