push
This commit is contained in:
1 parent
c86ee98def
commit
a3163cdd43
29 files changed
+693
-231
No files matched your search
@@ -10,7 +10,7 @@
|
||||
};
|
||||
|
||||
den.aspects.software.browsers = {
|
||||
homeManager = { host, pkgs, ... }: let
|
||||
homeManager = { host, pkgs, config, ... }: let
|
||||
mkExtension = src: vars: extra: rec {
|
||||
id = (builtins.fromJSON (builtins.readFile "${src}/manifest.json")).browser_specific_settings.gecko.id;
|
||||
xpi = pkgs.runCommand "${lib.head (lib.splitString "@" id)}.xpi" { nativeBuildInputs = [ pkgs.zip ]; } ''
|
||||
@@ -70,6 +70,11 @@
|
||||
"browser.search.separatePrivateDefault" = false;
|
||||
|
||||
"browser.download.autohideButton" = true;
|
||||
# save straight to ~/down (janitor sorts it) instead of asking
|
||||
"browser.download.folderList" = 2;
|
||||
"browser.download.dir" = "${config.home.homeDirectory}/down";
|
||||
"browser.download.useDownloadDir" = true;
|
||||
"browser.download.always_ask_before_handling_new_types" = false;
|
||||
"browser.quitShortcut.disabled" = true;
|
||||
"browser.sessionstore.resume_session_once" = true;
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
in
|
||||
{
|
||||
home.packages = lib.mapAttrsToList launcher present;
|
||||
# Register .vox/.mcsg; our desktop entries are the only handlers, so they become the default.
|
||||
|
||||
xdg.dataFile."mime/packages/magica.xml".text = ''
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
{ pkgs, config, ... }:
|
||||
let
|
||||
home = config.home.homeDirectory;
|
||||
gameDir = "${home}/media/games/minecraft";
|
||||
inherit (pkgs) lib symlinkJoin makeWrapper;
|
||||
|
||||
fetch = map (url: rec {
|
||||
@@ -56,7 +57,7 @@
|
||||
|
||||
appArgs = [
|
||||
"--gameDir"
|
||||
"${home}/.local/share/minecraft"
|
||||
gameDir
|
||||
];
|
||||
}]);
|
||||
|
||||
@@ -65,8 +66,11 @@
|
||||
paths = [ base ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
postBuild = ''
|
||||
# the launch script cd's into its own --gameDir (default: $PWD), so pin it too
|
||||
wrapProgram $out/bin/minecraft \
|
||||
--set XDG_DATA_HOME "${home}/.local/share/minecraft"
|
||||
--run 'mkdir -p "${gameDir}"' \
|
||||
--add-flags '--gameDir "${gameDir}"' \
|
||||
--set XDG_DATA_HOME "${gameDir}"
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
# Roblox client manager. The package is built privately by Gitea Actions on box
|
||||
# (repo <owner>/roblox) and served from the private attic cache; nothing here is
|
||||
# fetchable without the tokens in ~/.config/nix/{netrc,roblox.conf}.
|
||||
den.aspects.software.gaming = {
|
||||
# roblox.conf holds the cache substituter, its public key and `netrc-file`.
|
||||
nixos = { config, host, ... }: {
|
||||
nix.extraOptions = "!include ${config.users.users.${host.owner}.home}/.config/nix/roblox.conf";
|
||||
};
|
||||
|
||||
homeManager = { pkgs, host, ... }: let
|
||||
roblox = pkgs.writeShellApplication {
|
||||
name = "roblox-manager";
|
||||
runtimeInputs = with pkgs; [ curl coreutils ];
|
||||
text = ''
|
||||
state="''${XDG_STATE_HOME:-$HOME/.local/state}/roblox"
|
||||
mkdir -p "$state"
|
||||
# Follow the latest CI build; keep the last one when offline.
|
||||
if path=$(curl -fsS --max-time 10 --netrc-file "$HOME/.config/nix/netrc" \
|
||||
"https://git.${host.domain}/${host.owner}/roblox/raw/branch/release/path") \
|
||||
&& [[ "$(readlink "$state/current" || true)" != "$path" ]]; then
|
||||
nix-store --realise "$path" --add-root "$state/current" >/dev/null
|
||||
fi
|
||||
[[ -e "$state/current" ]] || { echo "roblox-manager: no build available yet" >&2; exit 1; }
|
||||
exec "$state/current/bin/roblox" "$@"
|
||||
'';
|
||||
};
|
||||
in {
|
||||
home.packages = [ roblox ];
|
||||
xdg.desktopEntries.roblox-manager = {
|
||||
name = "Roblox Manager";
|
||||
comment = "Roblox client manager";
|
||||
exec = "roblox-manager";
|
||||
icon = "applications-games";
|
||||
categories = [ "Game" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
file.".config/beets/config.yaml".text = ''
|
||||
library: ~/.local/share/beets/library.db
|
||||
directory: ~/Music
|
||||
directory: ~/media/music
|
||||
|
||||
import:
|
||||
write: true
|
||||
@@ -32,7 +32,7 @@
|
||||
format: opus
|
||||
formats:
|
||||
opus: ffmpeg -i $source -y -vn -c:a libopus -b:a 160k $dest
|
||||
dest: ${config.home.homeDirectory}/Music
|
||||
dest: ${config.home.homeDirectory}/media/music
|
||||
|
||||
fetchart:
|
||||
auto: yes
|
||||
@@ -43,7 +43,7 @@
|
||||
auto: yes
|
||||
|
||||
smartplaylist:
|
||||
playlist_dir: ~/Music/playlists
|
||||
playlist_dir: ~/media/music/playlists
|
||||
relative_to: library
|
||||
output: extm3u
|
||||
'';
|
||||
|
||||
Reference in new issue
Block a user