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

@ -4,33 +4,54 @@ inputs:
{
imports = [ (import ./modules inputs) ];
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
)}"
}
'';
};
programs.chromium = {
package = lib.mkDefault (pkgs.ungoogled-chromium.override {
commandLineArgs = lib.concatStringsSep " " [
"--force-dark-mode"
"--enable-features=UseOzonePlatform,WebUIDarkMode,VaapiVideoDecoder"
"--ozone-platform=wayland"
"--ignore-gpu-blocklist"
"--enable-gpu-rasterization"
"--enable-zero-copy"
];
});
};
programs.mpv = {
config = {
profile = lib.mkDefault "gpu-hq";
ytdl-format = lib.mkDefault "bestvideo+bestaudio";
};
};
home.packages = with pkgs; [
wget
httpie
git
jq
ripgrep
lsd
file
unzip
lm_sensors
# for fish-done
libnotify
notify-desktop
];
programs.vim = {
enable = true;
extraConfig = ''
set nocompatible
set nocp
set backspace=indent,eol,start
'';
};
home.sessionVariables = { TERM = "xterm-256color"; };
programs.fish = {
@ -53,7 +74,6 @@ inputs:
}
];
shellInit = ''
# Load nix shit on non-NixOS computers (yea yea laugh it up we all have legacy machines somewhere)
if not set -q NIX_PATH
set --prepend fish_function_path ${pkgs.fishPlugins.foreign-env}/share/fish/vendor_functions.d
fenv source $HOME/.nix-profile/etc/profile.d/nix.sh