Compare commits

..

No commits in common. "ee4ff53921c6dbafbf0b335d57c99b7a34949124" and "f7e50441890ee845bb57e1cc76f88cf95acbf433" have entirely different histories.

5 changed files with 22 additions and 66 deletions

1
.gitattributes vendored
View File

@ -1 +0,0 @@
*.deb filter=lfs diff=lfs merge=lfs -text

View File

@ -40,7 +40,6 @@
inconsolata inconsolata
jq jq
keyutils # for keyctl, used by some bitwarden scripts like qute-bitwarden keyutils # for keyctl, used by some bitwarden scripts like qute-bitwarden
krita
libreoffice libreoffice
logseq logseq
mupdf mupdf
@ -62,7 +61,6 @@
tree tree
unzip unzip
xclip xclip
xournal
xpra xpra
zathura zathura
zoom-us zoom-us
@ -359,9 +357,5 @@
config = ./xmonad.hs; config = ./xmonad.hs;
}; };
}; };
initExtra = ''
xinput --map-to-output 'HANVON UGEE Artist 16(2nd Gen) Mouse' DP-1
xinput --map-to-output 'HANVON UGEE Artist 16(2nd Gen)' DP-1
'';
}; };
} }

View File

@ -8,11 +8,7 @@
inputs, inputs,
sops, sops,
... ...
}: }: {
let
xp_pen_pentablet = pkgs.callPackage ./xp_pen_pentablet.nix {};
in
{
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
@ -57,17 +53,15 @@ in
}; };
}; };
networking = { networking.hostName = "buck"; # Define your hostname.
hostName = "buck"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
enableIPv6 = true; networking.wireless = {
wireless = { enable = true;
enable = true; userControlled.enable = true;
userControlled.enable = true; environmentFile = "/run/secrets/wifi/env";
environmentFile = "/run/secrets/wifi/env"; networks = {
networks = { "@SSID_HOME@" = {
"@SSID_HOME@" = { pskRaw = "@PSKRAW_HOME@";
pskRaw = "@PSKRAW_HOME@";
};
}; };
}; };
}; };
@ -91,11 +85,8 @@ in
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
networkmanager
networkmanagerapplet
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
wget wget
xp_pen_pentablet
]; ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
@ -106,8 +97,6 @@ in
enable = true; enable = true;
enableSSHSupport = true; enableSSHSupport = true;
}; };
# This is needed in case users set zsh as their default shell
zsh.enable = true;
}; };
# List services that you want to enable: # List services that you want to enable:
@ -119,26 +108,16 @@ in
# Enable touchpad support (enabled default in most desktopManager). services.xserver.libinput.enable = true; # Enable touchpad support (enabled default in most desktopManager). services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users = { users.users.jacob = {
groups.plugdev = {}; isNormalUser = true;
users.jacob = { extraGroups = [ "video" "wheel" ]; # Enable sudo for the user.
isNormalUser = true; shell = pkgs.zsh;
extraGroups = [ "audio" "jackaudio" "plugdev" "video" "wheel" ]; # Enable sudo for the user.
shell = pkgs.zsh;
};
}; };
security.rtkit.enable = true; # recommended for pipewire security.rtkit.enable = true; # recommended for pipewire
# List services that you want to enable: # List services that you want to enable:
services = { services = {
# If you want to use JACK applications, uncomment this
jack = {
alsa.enable = false;
jackd.enable = true;
loopback.enable = true;
};
logind = { logind = {
extraConfig = '' extraConfig = ''
[Login] [Login]
@ -155,10 +134,12 @@ in
openssh.enable = true; openssh.enable = true;
pipewire = { pipewire = {
enable = false; enable = true;
alsa.enable = false; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default, # use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now) # no need to redefine it in your config for now)
@ -173,22 +154,12 @@ in
udev.extraRules = '' udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", MODE="0666", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/backlight/%k/brightness" ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", MODE="0666", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/backlight/%k/brightness"
KERNEL=="hidraw", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev"
# For XP-PEN tablet
# From the official driver
KERNEL=="uinput",MODE:="0666",OPTIONS+="static_node=uinput"
SUBSYSTEMS=="usb",ATTRS{idVendor}=="28bd",MODE:="0666"
j
#KERNEL=="event[0-9]*", SUBSYSTEM=="input", SUBSYSTEMS=="usb", ATTRS{idVendor}=="28bd", ATTRS{idProduct}=="094c", MODE="0664", GROUP="plugdev"
#KERNEL=="mouse[0-9]*", SUBSYSTEM=="input", SUBSYSTEMS=="usb", ATTRS{idVendor}=="28bd", ATTRS{idProduct}=="094c", MODE="0664", GROUP="plugdev"
''; '';
# Enable the X11 windowing system. services.xserver.enable = true; # Enable the X11 windowing system. services.xserver.enable = true;
xserver = { xserver = {
enable = true; enable = true;
dpi = 112; # t470 has a 14" 16:9 monitor at native res 1366x768 dpi = 112; # t470 has a 14" 16:9 monitor at native res 1366x768
digimend.enable = true;
displayManager = { displayManager = {
defaultSession = "none+i3"; defaultSession = "none+i3";
autoLogin = { autoLogin = {
@ -207,7 +178,6 @@ j
disableWhileTyping = true; disableWhileTyping = true;
}; };
}; };
#wacom.enable = true;
windowManager.i3 = { windowManager.i3 = {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [

View File

@ -42,14 +42,8 @@
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true; # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
#hardware.video.hidpi.enable = true; hardware.video.hidpi.enable = true;
powerManagement.cpuFreqGovernor = "powersave"; powerManagement.cpuFreqGovernor = "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# for XP-Pen tablet
#hardware.opentabletdriver = {
#enable = true;
#package = patchedOTD;
#};
} }

View File

@ -25,7 +25,7 @@
, lib , lib
, fetchurl , fetchurl
, glib , glib
, dbus , dbus_libs
, dpkg , dpkg
, autoPatchelfHook , autoPatchelfHook
, writeShellScript , writeShellScript
@ -44,7 +44,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "xp_pen_driver"; pname = "xp_pen_driver";
version = "3.3.9.230222-1"; version = "3.2.0.210804-1";
src = fetchurl { src = fetchurl {
#url = "https://github.com/peterwilli/XP-Pen-Pentablet-Driver-for-Nixos/releases/download/3.2.0.210804-1/XP-PEN-pentablet-3.2.0.210804-1.x86_64.deb"; #url = "https://github.com/peterwilli/XP-Pen-Pentablet-Driver-for-Nixos/releases/download/3.2.0.210804-1/XP-PEN-pentablet-3.2.0.210804-1.x86_64.deb";
@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
zlib zlib
libGL libGL
libusb libusb
dbus dbus_libs
fontconfig fontconfig
glib glib
freetype freetype
@ -81,7 +81,6 @@ stdenv.mkDerivation rec {
chmod 755 "$out" chmod 755 "$out"
chmod a+x $out/usr/lib/pentablet/pentablet.sh chmod a+x $out/usr/lib/pentablet/pentablet.sh
chmod a+x $out/usr/lib/pentablet/pentablet
runHook postInstall runHook postInstall
mkdir -p $out/bin mkdir -p $out/bin
makeWrapper $out/usr/lib/pentablet/pentablet.sh $out/bin/pentablet makeWrapper $out/usr/lib/pentablet/pentablet.sh $out/bin/pentablet