overlay(steamcmd): use upstream url

This commit is contained in:
js0ny 2026-02-23 08:55:29 +00:00
parent 0ca532e432
commit d4bf5a6d49
11 changed files with 69 additions and 2 deletions

View file

@ -96,9 +96,10 @@
(final: prev: {
caelestia-shell = caelestia-shell.packages.x86_64-linux.caelestia-shell;
})
(final: pref: {
(final: prev: {
zen-browser = zen-browser.packages.x86_64-linux.zen-browser;
})
(import ./overlays/steamcmd.nix)
];
forSystem = system:
import nixpkgs {

View file

@ -0,0 +1,19 @@
final: prev: {
steamcmd = prev.steamcmd.overrideAttrs (
oldAttrs: let
url = platform: "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_${platform}.tar.gz";
srcs = {
x86_64-darwin = prev.fetchurl {
url = url "osx";
hash = "sha256-jswXyJiOWsrcx45jHEhJD3YVDy36ps+Ne0tnsJe9dTs=";
};
x86_64-linux = prev.fetchurl {
url = url "linux";
hash = "sha256-zr8ARr/QjPRdprwJSuR6o56/QVXl7eQTc7V5uPEHHnw=";
};
};
in {
src = srcs.${prev.stdenv.hostPlatform.system} or (throw "Unsupported system: ${prev.stdenv.hostPlatform.system}");
}
);
}

View file

@ -65,6 +65,7 @@
gocryptfs
uv
opencode
p7zip
]
++ (
if pkgs.stdenv.isDarwin

View file

@ -116,6 +116,8 @@ in {
scanmem
noname
steamcmd
];
imports = [
../programs/retroarch.nix

View file

@ -0,0 +1,9 @@
{pkgs, ...}: {
home.packages = with pkgs; [beets];
programs.beets = {
enable = false;
settings = {
plugins = ["rewrite"];
};
};
}

View file

@ -221,6 +221,7 @@ in {
};
xdg.configFile."run-or-raise/shortcuts.conf". text = ''
<Super>b,firefox,,
<Shift><Super>b,firefox --private-window,,
<Super>o,obsidian,,
<Shift><Super>e,fsearch,,
<Alt><Super>e,xdg-terminal-exec --app-id=terminal-popup yazi

View file

@ -124,6 +124,7 @@ in {
showSeconds = "Always";
showWeekNumbers = true;
use24hFormat = 2;
dateDisplayFormat = "BelowTime";
};
};
}

View file

@ -0,0 +1,10 @@
{...}: {
programs.gallery-dl = {
enable = true;
settings = {
extractor = {
base-directory = "~/Downloads";
};
};
};
}

View file

@ -99,7 +99,12 @@ in {
]
// mkAssoc archiveManager archive
// mkAssoc "mpv.desktop" video
// {"application/epub+zip" = "com.github.johnfactotum.Foliate.desktop";};
// {
"application/epub+zip" = "com.github.johnfactotum.Foliate.desktop";
# Loupe does not support dds
# .dds Microsoft DirectDraw Surface
"image/x-dds" = "mpv.desktop";
};
};
home.sessionVariables.BROWSER = "firefox";

View file

@ -1,16 +1,31 @@
{
lib,
pkgs,
config,
...
}: {
home.packages = [pkgs.picard];
# see: https://www.navidrome.org/docs/usage/library/tagging/#picard-specific-tips
xdg.configFile."MusicBrainz/Picard-Override.ini".text = lib.generators.toINI {} {
setting = {
check_for_plugin_updates = false;
check_for_updates = true;
file_save_warning = false;
move_files = true;
move_files_to = "${config.home.homeDirectory}/Music";
rename_files = true;
show_new_user_dialog = false;
cover_image_filename = "cover";
local_cover_regex = ''^(?:cover|folder|albumart)(.*)\\.(?:jpe?g|png|gif|tiff?|webp)$'';
windows_compatibility = true;
windows_long_paths = false;
preferred_release_countries = "DE, CN, TW, HK";
ui_language = "zh_CN";
ui_theme = "system";
toolbar_layout = "add_directory_action, add_files_action, play_file_action, separator, cluster_action, separator, autotag_action, analyze_action, browser_lookup_action, separator, save_action, view_info_action, remove_action, separator, cd_lookup_action, separator, submit_acoustid_action";
};
};

View file

@ -81,6 +81,7 @@ in {
./programs/fsearch.nix
./programs/elisa.nix
./programs/lollypop.nix
./programs/gallery-dl.nix
# Desktop Linux
./programs/desktop/gnome
@ -97,6 +98,8 @@ in {
../../modules/home/programs/starship.nix
../../modules/home/programs/zoxide.nix
../../modules/home/dev/c.nix
# Development setup
../../modules/home/dev/nix.nix
];