From 3ea2af40561d95c2c90b82f2873c9fd5479b889c Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 8 Apr 2024 14:35:52 +0100 Subject: [PATCH] Fixes for the P8 --- Makefile | 5 ++++- common.nix | 3 +-- hardware/p8-laptop.nix | 5 ++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e81ef3a..42db6c3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ pull: nix-shell -p git --run "git pull" -rebuild: pull +update-channels: + sudo nix-channel --update +rebuild: pull update-channels sudo nixos-rebuild switch -I nixos-config=machines/$(shell hostname -s)/configuration.nix + sudo nix-collect-garbage -d boot: pull sudo nixos-rebuild boot -I nixos-config=machines/$(shell hostname -s)/configuration.nix \ No newline at end of file diff --git a/common.nix b/common.nix index 92431e9..e8a04c4 100644 --- a/common.nix +++ b/common.nix @@ -50,7 +50,6 @@ git.enable = true; zsh.enable = true; ssh.startAgent = true; - gpg.agent.enable = true; }; environment.systemPackages = with pkgs; [ @@ -68,4 +67,4 @@ }; }; }; -} \ No newline at end of file +} diff --git a/hardware/p8-laptop.nix b/hardware/p8-laptop.nix index 4753b15..24ab965 100644 --- a/hardware/p8-laptop.nix +++ b/hardware/p8-laptop.nix @@ -16,7 +16,10 @@ "video=DSI-1:panel_orientation=right_side_up" "fbcon=rotate:1" ]; - boot.kernelPackages = pkgs.linuxPackages_latest; + boot.extraModprobeConfig = '' + options intel_hid enable_sw_tablet_mode=2 + ''; + boot.kernelPackages = pkgs.linuxPackages_testing; # Fix the font rendering fonts.fontconfig = {