Compare commits

...

5 commits

6 changed files with 108 additions and 10 deletions

View file

@ -25,7 +25,7 @@
programs.zen-browser = (import ./_base.nix args) // { package = pkgs.my.zen-browser; }; programs.zen-browser = (import ./_base.nix args) // { package = pkgs.my.zen-browser; };
home.sessionVariables = { home.sessionVariables = {
BROWSER = "zen-browser"; BROWSER = "${pkgs.my.zen-browser}/bin/zen-browser";
MOZ_USE_XINPUT2 = "1"; MOZ_USE_XINPUT2 = "1";
MOZ_ENABLE_WAYLAND = "1"; MOZ_ENABLE_WAYLAND = "1";
}; };

View file

@ -404,6 +404,7 @@ in
rage rage
nh nh
pkgs.agenix-rekey pkgs.agenix-rekey
my.aaxtomp3
# android-studio-full # android-studio-full
]; ];
}; };

View file

@ -131,7 +131,7 @@ in
flake = "/home/tristand/nix"; flake = "/home/tristand/nix";
}; };
rust-motd = { rust-motd = {
# enable = true; # broken atm enable = true;
enableMotdInSSHD = true; enableMotdInSSHD = true;
settings = { settings = {
banner = { banner = {

View file

@ -21,7 +21,7 @@
let let
tcl = "80"; tcl = "80";
# coall = "1048561"; # 1048561 = 0x100000 - 15(mV) $ math "0x100000-15" # slight undervolt # coall = "1048561"; # 1048561 = 0x100000 - 15(mV) $ math "0x100000-15" # slight undervolt
coall = " 1048576"; # no oc? coall = "1048576"; # no oc?
defaults = "--tctl-temp=${tcl} --set-coall=${coall}"; defaults = "--tctl-temp=${tcl} --set-coall=${coall}";
in in
{ {

View file

@ -11,20 +11,36 @@
virt-viewer virt-viewer
virt-top virt-top
spice-gtk spice-gtk
podman-bootc
bootc
inputs.winapps.packages."${system}".winapps inputs.winapps.packages."${system}".winapps
inputs.winapps.packages."${system}".winapps-launcher inputs.winapps.packages."${system}".winapps-launcher
]; ];
boot.kernelModules = [ "kvm-amd" ]; # TODO check cpu and enable intel kvm if needed boot.kernelModules = [ "kvm-amd" ]; # TODO check cpu and enable intel kvm if needed
virtualisation.waydroid.enable = true; virtualisation = {
virtualisation.docker = { # waydroid.enable = true;
enable = true; containers.enable = true;
package = pkgs.docker; podman = {
enable = true;
storageDriver = lib.mkDefault "overlay2"; autoPrune.enable = true;
liveRestore = false;
autoPrune.enable = true; dockerCompat = true;
dockerSocket.enable = true;
defaultNetwork.settings.dns_enabled = true;
};
docker = {
enable = false;
package = pkgs.docker;
storageDriver = lib.mkDefault "overlay2";
liveRestore = false;
autoPrune.enable = true;
};
}; };
security.wrappers.spice-client-glib-usb-acl-helper = { security.wrappers.spice-client-glib-usb-acl-helper = {

81
pkgs/aaxtomp3.nix Normal file
View file

@ -0,0 +1,81 @@
{
bash,
bc,
coreutils,
fetchFromGitHub,
ffmpeg,
findutils,
gawk,
gnugrep,
gnused,
jq,
lame,
lib,
mediainfo,
mp4v2,
ncurses,
resholve,
}:
resholve.mkDerivation rec {
pname = "aaxtomp3";
version = "1.3";
src = fetchFromGitHub {
owner = "damajor";
repo = "aaxtomp3";
rev = "patch-1";
hash = "sha256-e+A4PLr3/WF/KeEeS6mwpc0ybvTyXTpxoOn6Bj6ZmMg=";
};
postPatch = ''
substituteInPlace AAXtoMP3 \
--replace 'AAXtoMP3' 'aaxtomp3'
substituteInPlace interactiveAAXtoMP3 \
--replace 'AAXtoMP3' 'aaxtomp3' \
--replace 'call="./aaxtomp3"' 'call="$AAXTOMP3"'
'';
installPhase = ''
install -Dm 755 AAXtoMP3 $out/bin/aaxtomp3
install -Dm 755 interactiveAAXtoMP3 $out/bin/interactiveaaxtomp3
'';
solutions.default = {
scripts = [
"bin/aaxtomp3"
"bin/interactiveaaxtomp3"
];
interpreter = "${bash}/bin/bash";
inputs = [
bc
coreutils
ffmpeg
findutils
gawk
gnugrep
gnused
jq
lame
mediainfo
mp4v2
ncurses
];
keep."$call" = true;
fix = {
"$AAXTOMP3" = [ "${placeholder "out"}/bin/aaxtomp3" ];
"$FIND" = [ "find" ];
"$GREP" = [ "grep" ];
"$SED" = [ "sed" ];
"$FFPROBE" = [ "ffprobe" ];
"$FFMPEG" = [ "ffmpeg" ];
};
};
meta = with lib; {
description = "Convert Audible's .aax filetype to MP3, FLAC, M4A, or OPUS";
homepage = "https://krumpetpirate.github.io/AAXtoMP3";
license = licenses.wtfpl;
maintainers = with maintainers; [ urandom ];
};
}