assorted fixes, add de2 as alternative to ezpcusr

This commit is contained in:
notgne2 2022-01-29 00:26:02 -07:00
parent b8dc4fde46
commit 487a076825
No known key found for this signature in database
GPG key ID: BB661E172B42A7F8
11 changed files with 336 additions and 152 deletions

View file

@ -596,45 +596,10 @@ in
};
};
programs.direnv = {
enable = lib.mkDefault true;
nix-direnv.enable = lib.mkDefault true;
stdlib = ''
: ''${XDG_CACHE_HOME:=$HOME/.cache}
declare -A direnv_layout_dirs
direnv_layout_dir() {
echo "''${direnv_layout_dirs[$PWD]:=$(
echo -n "$XDG_CACHE_HOME"/direnv/layouts/
echo -n "$PWD" | shasum | cut -d ' ' -f 1
)}"
}
'';
};
colors.enable = lib.mkDefault true;
fonts.enable = lib.mkDefault true;
programs.chromium = {
enable = lib.mkDefault true;
package = lib.mkDefault ((pkgs.ungoogled-chromium.overrideAttrs (old: {
patches = [
../data/chromium-dark.patch
];
})).override {
commandLineArgs = lib.concatStringsSep " " [
# I think if the dark patch worked, this should be removed, it doesn't seem to...
"--force-dark-mode"
"--enable-features=UseOzonePlatform,WebUIDarkMode,VaapiVideoDecoder"
"--ozone-platform=wayland"
"--ignore-gpu-blocklist"
"--enable-gpu-rasterization"
"--enable-zero-copy"
"--disable-gpu-driver-bug-workarounds"
"--use-gl=egl"
];
});
};
programs.chromium.enable = lib.mkDefault true;
services.blueman-applet.enable = lib.mkDefault cfg.bluetooth;
@ -710,49 +675,50 @@ in
image_backend="kitty"
'';
programs.mpv = {
enable = lib.mkDefault true;
config = {
profile = lib.mkDefault "gpu-hq";
ytdl-format = lib.mkDefault "bestvideo+bestaudio";
xdg.enable = true;
xdg.userDirs.enable = true;
xdg.mimeApps = {
enable = true;
defaultApplications = {
"inode/directory" = "pcmanfm-qt.desktop";
"text/html" = "chromium-browser.desktop";
"x-scheme-handler/http" = "chromium-browser.desktop";
"x-scheme-handler/https" = "chromium-browser.desktop";
"x-scheme-handler/about" = "chromium-browser.desktop";
"application/zip" = "ark.desktop";
"application/rar" = "ark.desktop";
"application/7z" = "ark.desktop";
"application/*tar" = "ark.desktop";
};
};
programs.mpv.enable = lib.mkDefault true;
fonts.fontconfig.enable = lib.mkDefault true;
home.packages = with pkgs; [
waybar
wl-clipboard # important actually, for vim and other things
xwayland
libappindicator-gtk3
jq
wl-clipboard
# ezpcusr stuff
ezDrv
inputs.mudl.defaultPackage.${pkgs.system}
bitwarden-cli
kitty
# programs
pavucontrol
ark
pcmanfm-qt
# CLI tools
yt-dlp
maim
slop
ark
notify-osd
ffmpeg
id3v2
imagemagick
# CLI tools that integrate with ezpcusr things
mpc_cli
playerctl
nix-index
gitAndTools.hub
nmap
nixpkgs-fmt
xorg.xhost
];