Use most recent linux kernel for config wo touchscreen

This commit is contained in:
2024-11-27 10:49:33 +11:00
parent 2e5b3e1200
commit 7736f96078
7 changed files with 335 additions and 15 deletions
+62 -13
View File
@@ -9,7 +9,7 @@
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
system.copySystemConfiguration = true;
nix = {
settings = {
auto-optimise-store = true;
@@ -18,13 +18,15 @@
};
nixpkgs.system = "x86_64-linux";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
# Use the systemd-boot EFI boot loader.
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "nixpengames"; # Define your hostname.
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
# Set your time zone.
@@ -42,16 +44,45 @@
# useXkbConfig = true; # use xkb.options in tty.
# };
i18n.inputMethod = {
# type = "fcitx5";
enabled = "fcitx5";
fcitx5.waylandFrontend = true;
fcitx5.addons = with pkgs; [
fcitx5-mozc
fcitx5-gtk
fcitx5-anthy
fcitx5-hangul
fcitx5-chinese-addons
fcitx5-configtool
fcitx5-nord
];
};
environment.sessionVariables = rec {
EDITOR="vim";
};
# Enable the X11 windowing system.
services.xserver.enable = true;
services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
services.displayManager.sddm = {
enable = true;
settings = {
Wayland = {
EnableHiDPI=true;
};
General = {
GreeterEnvironment="QT_SCREEN_SCALE_FACTORS=2,QT_FONT_DPI=192";
};
};
};
services.displayManager.defaultSession = "plasma";
services.desktopManager.plasma6.enable = true;
services.xserver.desktopManager.runXdgAutostartIfNone = true;
# Configure keymap in X11
services.xserver.xkb.layout = "us";
services.xserver.xkb.options = "eurosign:e,caps:escape";
services.xserver = {
enable = true ;
xkb.layout = "";
xkb.options = "eurosign:e,caps:escape";
};
# Enable CUPS to print documents.
services.printing.enable = true;
@@ -62,19 +93,32 @@
services.pipewire = {
enable = true;
pulse.enable = true;
# alsa.enable = true;
# alsa.support32Bit = true;
};
security.rtkit.enable = true;
# Enable bluetooth
services.blueman.enable = true;
hardware.enableAllFirmware = true;
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
hardware.bluetooth.settings = {
General = {
Experimental = true;
};
};
};
# services.pipewire.wireplumber.extraConfig.bluetoothEnhancements = {
# "monitor.bluez.properties" = {
# "bluez5.enable-sbc-xq" = true;
# "bluez5.enable-msbc" = true;
# "bluez5.enable-hw-volume" = true;
# "bluez5.roles" = [ "hsp_hs" "hsp_ag" "hfp_hf" "hfp_ag" ];
# };
#};
# Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = true;
programs.fish.enable = true;
@@ -134,6 +178,10 @@
blender
gimp
krita
pciutils
maliit-keyboard
maliit-framework
pavucontrol
];
# Some programs need SUID wrappers, can be configured further or are
@@ -181,5 +229,6 @@
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "24.05"; # Did you read the comment?
}