Compare commits
No commits in common. "2fda9075b06512c5f47ca2a7c0187412504c1860" and "82b0e8f4eef684cd7c3d6ef11d9bc6d2c991792b" have entirely different histories.
2fda9075b0
...
82b0e8f4ee
6 changed files with 51 additions and 19 deletions
|
@ -3,8 +3,5 @@
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
# Keychron C2 function key fix
|
# Keychron C2 function key fix
|
||||||
SUBSYSTEMS=="input", ATTRS{name}=="Keychron Keychron C2", RUN+="${pkgs.bash}/bin/bash -c 'echo 0 > /sys/module/hid_apple/parameters/fnmode'"
|
SUBSYSTEMS=="input", ATTRS{name}=="Keychron Keychron C2", RUN+="${pkgs.bash}/bin/bash -c 'echo 0 > /sys/module/hid_apple/parameters/fnmode'"
|
||||||
|
|
||||||
# EM8026 thermal printer
|
|
||||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="28e9", ATTRS{idProduct}=="0289", MODE="0660", GROUP="plugdev"
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,19 +1,38 @@
|
||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
<nixos-hardware/lenovo/thinkpad/x270>
|
|
||||||
];
|
|
||||||
hardware.trackpoint = {
|
hardware.trackpoint = {
|
||||||
enable = true;
|
enable = true;
|
||||||
sensitivity = 230;
|
sensitivity = 230;
|
||||||
speed = 170;
|
speed = 170;
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.graphics = {
|
# Ensure that trackpoint mouse buttons work after suspend without having
|
||||||
|
# to touch the trackpoint first
|
||||||
|
powerManagement = {
|
||||||
|
powerDownCommands = ''
|
||||||
|
modprobe -r psmouse
|
||||||
|
'';
|
||||||
|
resumeCommands = ''
|
||||||
|
modprobe psmouse
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver.videoDrivers = [ "modesetting" ];
|
||||||
|
|
||||||
|
boot.initrd.kernelModules = [ "i915" ];
|
||||||
|
hardware.opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# driSupport = true;
|
# driSupport = true;
|
||||||
# driSupport32Bit = true;
|
# driSupport32Bit = true;
|
||||||
};
|
};
|
||||||
|
environment.variables = {
|
||||||
|
VDPAU_DRIVER = "va_gl";
|
||||||
|
};
|
||||||
|
hardware.opengl.extraPackages = with pkgs; [
|
||||||
|
(if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then vaapiIntel else intel-vaapi-driver)
|
||||||
|
libvdpau-va-gl
|
||||||
|
intel-media-driver
|
||||||
|
];
|
||||||
|
|
||||||
console = {
|
console = {
|
||||||
font = "Lat2-Terminus16";
|
font = "Lat2-Terminus16";
|
||||||
|
|
|
@ -3,15 +3,11 @@
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
desktopManager = {
|
desktopManager = {
|
||||||
xfce= {
|
xfce.enable = true;
|
||||||
enable = true;
|
|
||||||
enableXfwm = true;
|
|
||||||
};
|
|
||||||
xterm.enable = false;
|
xterm.enable = false;
|
||||||
};
|
};
|
||||||
displayManager = {
|
displayManager = {
|
||||||
lightdm.enable = true;
|
lightdm.enable = true;
|
||||||
gdm.wayland = false;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.displayManager = {
|
services.displayManager = {
|
||||||
|
@ -20,12 +16,8 @@
|
||||||
autoLogin.user = "fruchti";
|
autoLogin.user = "fruchti";
|
||||||
};
|
};
|
||||||
services.libinput.enable = true;
|
services.libinput.enable = true;
|
||||||
services.pipewire = {
|
nixpkgs.config.pulseaudio = true;
|
||||||
enable = true;
|
hardware.pulseaudio.enable = true;
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
# environment.xfce.excludePackages = with pkgs.xfce; [
|
# environment.xfce.excludePackages = with pkgs.xfce; [
|
||||||
|
@ -40,7 +32,7 @@
|
||||||
lounge-gtk-theme
|
lounge-gtk-theme
|
||||||
hackneyed
|
hackneyed
|
||||||
blueman
|
blueman
|
||||||
file-roller
|
gnome.file-roller
|
||||||
];
|
];
|
||||||
security.pam.services.lightdm.enableGnomeKeyring = true;
|
security.pam.services.lightdm.enableGnomeKeyring = true;
|
||||||
services.gnome.gnome-keyring.enable = true;
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./burp.nix
|
./burp.nix
|
||||||
|
./horizon-eda.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
13
overlays/horizon-eda.nix
Normal file
13
overlays/horizon-eda.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(self: super: {
|
||||||
|
horizon-eda = (super.horizon-eda.overrideAttrs (old: {
|
||||||
|
# Add an environment variable to fix redraw issues on Intel Graphics
|
||||||
|
patches = [
|
||||||
|
./horizon_software_draw_surface.patch
|
||||||
|
];
|
||||||
|
}));
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
10
overlays/horizon_software_draw_surface.patch
Normal file
10
overlays/horizon_software_draw_surface.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
diff --git a/org.horizon_eda.HorizonEDA.desktop b/org.horizon_eda.HorizonEDA.desktop
|
||||||
|
index 7551df54..d8df7800 100644
|
||||||
|
--- a/org.horizon_eda.HorizonEDA.desktop
|
||||||
|
+++ b/org.horizon_eda.HorizonEDA.desktop
|
||||||
|
@@ -5,4 +5,4 @@ Categories=Development;Engineering;Electronics;
|
||||||
|
Type=Application
|
||||||
|
Terminal=false
|
||||||
|
Icon=org.horizon_eda.HorizonEDA
|
||||||
|
-Exec=horizon-eda %U
|
||||||
|
+Exec=env GDK_GL=software-draw-surface horizon-eda %U
|
Loading…
Add table
Add a link
Reference in a new issue