random changes

This commit is contained in:
2021-04-07 19:07:29 +05:30
parent 9b9fd033d3
commit 24b5528f57
4 changed files with 44 additions and 45 deletions

View File

@@ -7,9 +7,9 @@
enable = true;
libinput= {
enable = true;
mouse = {
accelSpeed = "0";
};
# mouse = {
# accelSpeed = "0";
# };
touchpad = {
middleEmulation = false;
clickMethod = "buttonareas";

View File

@@ -4,24 +4,8 @@
environment.systemPackages = with pkgs; [
(callPackage ./customscripts.nix {})
(callPackage ./mpd_discord_richpresence.nix {})
(dwm.overrideAttrs (oldAttrs: rec {
src = ./dwm;
# src = fetchFromGitHub {
# owner = "natto1784";
# repo = "dwm";
# rev = "363951cb05142f4c423af561a05658e74be7c768";
# sha256 ="003sl6w5dkycw8wcymvhi843xjngsys6qsl3fc5b9vpyd1l7i0sr";
# };
}))
(st.overrideAttrs (oldAttrs: rec {
src = ./st;
#src = fetchFromGitHub {
# owner = "natto1784";
# repo = "st";
# rev = "0cd1e394e6d07c5f605ae23070c40de9690bafb1";
# sha256 = "0riqg63aghx71v3rrpic3mxhcxqhry20312bicwbf3ks7ndl13hi";
# };
}))
(dwm.overrideAttrs (oldAttrs: rec {src = ./dwm;}))
(st.overrideAttrs (oldAttrs: rec {src = ./st;}))
(dmenu.overrideAttrs (oldAttrs: rec {
configFile = writeText "config.def.h" (builtins.readFile ./dmenu/config.def.h);
postPatch = "${oldAttrs.postPatch}\n cp ${configFile} config.def.h";
@@ -31,6 +15,16 @@
colemak-dh = writeText "colemak-dh.map" (builtins.readFile ./colemak-dh.map);
postInstall = "${oldAttrs.postInstall}\n cp ${colemak-dh} $out/share/keymaps/i386/colemak/colemak-dh.map\n gzip $out/share/keymaps/i386/colemak/colemak-dh.map";
}))
(picom.overrideAttrs (oldAttrs: rec{
version = "Next";
src = fetchFromGitHub {
owner = "yshui";
repo = "picom";
rev = "v${version}";
sha256 = "0asp2hg1jx909kl7i876mcx00vwg9w2swr9i6d786iwgs247dc9i";
fetchSubmodules = true;
};
}))
ncmpcpp
];
nixpkgs.overlays = [

View File

@@ -1,28 +1,33 @@
{lib, config, pkgs, ... }:
{
#services.pipewire = {
# enable = true;
# pulse.enable = true;
# config.pipewire = {
# context.properties = {
# default.clock.min-quantum = 8;
# };
#};
# config.pipewire-pulse = {
# context.modules = {
# pulse.min.req = "4/48000"; # 0.08ms
# pulse.min.quantum = "4/48000"; # 0.08ms
#};
#stream.properties = {
# node.latency = "4/48000";
# };
#};
#};
sound.enable = true;
hardware = {
pulseaudio.enable = true;
pulseaudio.support32Bit = true;
services.pipewire = {
enable = true;
# alsa = {
# enable = true;
# support32Bit = true;
# };
pulse = {
enable = true;
};
config.pipewire = {
context.properties = {
default.clock.min-quantum = 8;
};
};
config.pipewire-pulse = {
context.modules = {
pulse.min.req = "4/24000";
pulse.min.quantum = "4/24000";
};
stream.properties = {
node.latency = "4/24000";
};
};
};
sound.enable = true;
# hardware = {
# pulseaudio.enable = true;
# pulseaudio.support32Bit = true;
# };
}