mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-21 18:26:20 +00:00
overlay(steamcmd): use upstream url
This commit is contained in:
parent
0ca532e432
commit
d4bf5a6d49
11 changed files with 69 additions and 2 deletions
|
|
@ -96,9 +96,10 @@
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
caelestia-shell = caelestia-shell.packages.x86_64-linux.caelestia-shell;
|
caelestia-shell = caelestia-shell.packages.x86_64-linux.caelestia-shell;
|
||||||
})
|
})
|
||||||
(final: pref: {
|
(final: prev: {
|
||||||
zen-browser = zen-browser.packages.x86_64-linux.zen-browser;
|
zen-browser = zen-browser.packages.x86_64-linux.zen-browser;
|
||||||
})
|
})
|
||||||
|
(import ./overlays/steamcmd.nix)
|
||||||
];
|
];
|
||||||
forSystem = system:
|
forSystem = system:
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
|
|
|
||||||
19
nixcfgs/overlays/steamcmd.nix
Normal file
19
nixcfgs/overlays/steamcmd.nix
Normal 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}");
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
@ -65,6 +65,7 @@
|
||||||
gocryptfs
|
gocryptfs
|
||||||
uv
|
uv
|
||||||
opencode
|
opencode
|
||||||
|
p7zip
|
||||||
]
|
]
|
||||||
++ (
|
++ (
|
||||||
if pkgs.stdenv.isDarwin
|
if pkgs.stdenv.isDarwin
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,8 @@ in {
|
||||||
scanmem
|
scanmem
|
||||||
|
|
||||||
noname
|
noname
|
||||||
|
|
||||||
|
steamcmd
|
||||||
];
|
];
|
||||||
imports = [
|
imports = [
|
||||||
../programs/retroarch.nix
|
../programs/retroarch.nix
|
||||||
|
|
|
||||||
9
nixcfgs/users/js0ny/programs/beets.nix
Normal file
9
nixcfgs/users/js0ny/programs/beets.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [beets];
|
||||||
|
programs.beets = {
|
||||||
|
enable = false;
|
||||||
|
settings = {
|
||||||
|
plugins = ["rewrite"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -221,6 +221,7 @@ in {
|
||||||
};
|
};
|
||||||
xdg.configFile."run-or-raise/shortcuts.conf". text = ''
|
xdg.configFile."run-or-raise/shortcuts.conf". text = ''
|
||||||
<Super>b,firefox,,
|
<Super>b,firefox,,
|
||||||
|
<Shift><Super>b,firefox --private-window,,
|
||||||
<Super>o,obsidian,,
|
<Super>o,obsidian,,
|
||||||
<Shift><Super>e,fsearch,,
|
<Shift><Super>e,fsearch,,
|
||||||
<Alt><Super>e,xdg-terminal-exec --app-id=terminal-popup yazi
|
<Alt><Super>e,xdg-terminal-exec --app-id=terminal-popup yazi
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,7 @@ in {
|
||||||
showSeconds = "Always";
|
showSeconds = "Always";
|
||||||
showWeekNumbers = true;
|
showWeekNumbers = true;
|
||||||
use24hFormat = 2;
|
use24hFormat = 2;
|
||||||
|
dateDisplayFormat = "BelowTime";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
nixcfgs/users/js0ny/programs/gallery-dl.nix
Normal file
10
nixcfgs/users/js0ny/programs/gallery-dl.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{...}: {
|
||||||
|
programs.gallery-dl = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
extractor = {
|
||||||
|
base-directory = "~/Downloads";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -99,7 +99,12 @@ in {
|
||||||
]
|
]
|
||||||
// mkAssoc archiveManager archive
|
// mkAssoc archiveManager archive
|
||||||
// mkAssoc "mpv.desktop" video
|
// 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";
|
home.sessionVariables.BROWSER = "firefox";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,31 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home.packages = [pkgs.picard];
|
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 {} {
|
xdg.configFile."MusicBrainz/Picard-Override.ini".text = lib.generators.toINI {} {
|
||||||
setting = {
|
setting = {
|
||||||
|
check_for_plugin_updates = false;
|
||||||
|
check_for_updates = true;
|
||||||
file_save_warning = false;
|
file_save_warning = false;
|
||||||
move_files = true;
|
move_files = true;
|
||||||
|
move_files_to = "${config.home.homeDirectory}/Music";
|
||||||
rename_files = true;
|
rename_files = true;
|
||||||
show_new_user_dialog = false;
|
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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,7 @@ in {
|
||||||
./programs/fsearch.nix
|
./programs/fsearch.nix
|
||||||
./programs/elisa.nix
|
./programs/elisa.nix
|
||||||
./programs/lollypop.nix
|
./programs/lollypop.nix
|
||||||
|
./programs/gallery-dl.nix
|
||||||
|
|
||||||
# Desktop Linux
|
# Desktop Linux
|
||||||
./programs/desktop/gnome
|
./programs/desktop/gnome
|
||||||
|
|
@ -97,6 +98,8 @@ in {
|
||||||
../../modules/home/programs/starship.nix
|
../../modules/home/programs/starship.nix
|
||||||
../../modules/home/programs/zoxide.nix
|
../../modules/home/programs/zoxide.nix
|
||||||
|
|
||||||
|
../../modules/home/dev/c.nix
|
||||||
|
|
||||||
# Development setup
|
# Development setup
|
||||||
../../modules/home/dev/nix.nix
|
../../modules/home/dev/nix.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue