Switched hw acceleration to enhance chromium UX

This commit is contained in:
2025-07-12 19:58:19 +03:00
parent c2ce919b9e
commit a648f87a1e
6 changed files with 61 additions and 41 deletions

View File

@@ -8,7 +8,11 @@
# Add other flake inputs if needed # Add other flake inputs if needed
}; };
outputs = { self, nixpkgs, ... }@inputs: { outputs = {
self,
nixpkgs,
...
} @ inputs: {
nixosConfigurations = { nixosConfigurations = {
puter = nixpkgs.lib.nixosSystem { puter = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";

View File

@@ -1,11 +1,16 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: { {
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")]; imports = [(modulesPath + "/installer/scan/not-detected.nix")];
boot.initrd.availableKernelModules = boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
[ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = []; boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel" "wl"]; boot.kernelModules = ["kvm-intel" "wl"];
boot.extraModulePackages = [config.boot.kernelPackages.broadcom_sta]; boot.extraModulePackages = [config.boot.kernelPackages.broadcom_sta];
@@ -15,8 +20,7 @@
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."luks-08992355-1404-44dc-9bb4-fd32f1d0b62d".device = boot.initrd.luks.devices."luks-08992355-1404-44dc-9bb4-fd32f1d0b62d".device = "/dev/disk/by-uuid/08992355-1404-44dc-9bb4-fd32f1d0b62d";
"/dev/disk/by-uuid/08992355-1404-44dc-9bb4-fd32f1d0b62d";
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/F54E-7011"; device = "/dev/disk/by-uuid/F54E-7011";
@@ -24,8 +28,7 @@
options = ["fmask=0022" "dmask=0022"]; options = ["fmask=0022" "dmask=0022"];
}; };
swapDevices = swapDevices = [{device = "/dev/disk/by-uuid/c9b7b195-d072-4574-8e39-a5e4f90ca84d";}];
[{ device = "/dev/disk/by-uuid/c9b7b195-d072-4574-8e39-a5e4f90ca84d"; }];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's
@@ -40,8 +43,7 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.luks.devices."luks-d27fc6c5-7edd-4c18-ab70-3ca02a28abcc".device = boot.initrd.luks.devices."luks-d27fc6c5-7edd-4c18-ab70-3ca02a28abcc".device = "/dev/disk/by-uuid/d27fc6c5-7edd-4c18-ab70-3ca02a28abcc";
"/dev/disk/by-uuid/d27fc6c5-7edd-4c18-ab70-3ca02a28abcc";
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
intel-vaapi-driver = intel-vaapi-driver =
@@ -57,7 +59,7 @@
]; ];
}; };
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; }; environment.sessionVariables = {LIBVA_DRIVER_NAME = "i965";};
hardware.facetimehd = { hardware.facetimehd = {
enable = true; enable = true;

View File

@@ -1,4 +1,8 @@
{ config, pkgs, ... }: { {
config,
pkgs,
...
}: {
nixpkgs.config.permittedInsecurePackages = ["python-2.7.18.8"]; nixpkgs.config.permittedInsecurePackages = ["python-2.7.18.8"];
nixpkgs.config = {chromium = {enableWideVine = true;};}; nixpkgs.config = {chromium = {enableWideVine = true;};};
users.users.user = { users.users.user = {

View File

@@ -1,4 +1,8 @@
{ config, pkgs, ... }: { {
config,
pkgs,
...
}: {
services.syncthing = { services.syncthing = {
enable = true; enable = true;
openDefaultPorts = true; openDefaultPorts = true;
@@ -14,12 +18,10 @@
settings = { settings = {
devices = { devices = {
"phone" = { "phone" = {
id = id = "N3RII7R-4YOKJ46-HY6NSTD-TPE7SW4-N66CWVQ-J2JVW7E-NARRMBF-JG27YQ7";
"N3RII7R-4YOKJ46-HY6NSTD-TPE7SW4-N66CWVQ-J2JVW7E-NARRMBF-JG27YQ7";
}; };
"bigbox" = { "bigbox" = {
id = id = "RFFXZJI-HJTEDCU-M7MU3SW-M7DJK4U-MESRKYA-OGHYOSG-KNZO7JB-6LQ5VAE";
"RFFXZJI-HJTEDCU-M7MU3SW-M7DJK4U-MESRKYA-OGHYOSG-KNZO7JB-6LQ5VAE";
}; };
}; };
folders = { folders = {
@@ -27,8 +29,7 @@
# Name of folder in Syncthing, also the folder ID # Name of folder in Syncthing, also the folder ID
path = "/home/user/brain_zero/"; # Which folder to add to Syncthing path = "/home/user/brain_zero/"; # Which folder to add to Syncthing
devices = ["phone"]; # Which devices to share the folder with devices = ["phone"]; # Which devices to share the folder with
ignores = ignores = [".obsidian/workspace-mobile.json" ".obsidian/workspace.json"];
[ ".obsidian/workspace-mobile.json" ".obsidian/workspace.json" ];
}; };
"brain_zero_readonly" = { "brain_zero_readonly" = {
# Name of folder in Syncthing, also the folder ID # Name of folder in Syncthing, also the folder ID

View File

@@ -1,4 +1,9 @@
{ config, pkgs, lib, ... }: { {
config,
pkgs,
lib,
...
}: {
environment.variables.EDITOR = "nvim"; environment.variables.EDITOR = "nvim";
users.users.user.shell = pkgs.bash; users.users.user.shell = pkgs.bash;

View File

@@ -1,4 +1,8 @@
{ config, pkgs, ... }: { {
config,
pkgs,
...
}: {
programs.neovim = {defaultEditor = true;}; programs.neovim = {defaultEditor = true;};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
pciutils pciutils