Fixes widevine on aarch64 firefox, adds quartus prime

This commit is contained in:
willemml 2024-02-13 00:47:02 -08:00
parent 5cc4117bf8
commit 5045bbecf5
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
5 changed files with 44 additions and 16 deletions

View file

@ -14,7 +14,8 @@ in {
./waybar.nix
];
home.packages = with pkgs; [
home.packages = with pkgs;
[
(
if pkgs.stdenv.isAarch64
then firefox-wv
@ -28,7 +29,12 @@ in {
xdg-desktop-portal-hyprland
xdg-desktop-portal
rofi-wayland
];
]
++ (
if pkgs.stdenv.isAarch64
then [firefox-wv]
else [firefox discord (quartus-prime-lite.override (old: {supportedDevices = ["Cyclone V"];}))]
);
# notifications daemon
services.mako.enable = true;
@ -159,7 +165,7 @@ in {
kb_layout = globals.keyboard.layout;
kb_variant = globals.keyboard.variant;
sensitivity = 0.4;
accel_profile = "adaptive";
accel_profile = "flat";
touchpad = {
natural_scroll = true;
clickfinger_behavior = true;
@ -169,6 +175,11 @@ in {
};
};
"device:synaptics-tm3053-003" = {
accel_profile = "adaptive";
sensitivity = 0.3;
};
gestures = {
workspace_swipe = true;
workspace_swipe_fingers = 3;

View file

@ -47,6 +47,7 @@ in {
sqlite
tealdeer
unzip
vhdl-ls
yq
vhdl-ls
zsh-completions

View file

@ -16,6 +16,8 @@
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
boot.tmp.useTmpfs = false;
fileSystems."/" = {
device = "/dev/disk/by-uuid/1fb0caa2-f036-4403-b75f-beed8ba54984";
fsType = "ext4";

View file

@ -21,7 +21,7 @@
programs.command-not-found.enable = false;
boot.tmp.useTmpfs = true;
boot.tmp.useTmpfs = lib.mkDefault true;
console.keyMap = "colemak";
console.packages = [pkgs.terminus_font];
@ -46,6 +46,17 @@
'';
services.udev.enable = true;
services.udev.extraRules = ''
# USB-Blaster
SUBSYSTEM=="usb", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6001", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6002", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6003", MODE="0666"
# USB-Blaster II
SUBSYSTEM=="usb", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6010", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6810", MODE="0666"
'';
services.openssh.enable = true;
services.openssh.settings.PasswordAuthentication = false;

View file

@ -3,6 +3,9 @@
globals,
...
}: {
services.udev.extraRules = ''
SUBSYSTEM=="usb", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6001", MODE="0666"
'';
services.pipewire = {
enable = true;
alsa.enable = true;