FIX : acceleration hardware

ADD : synergy config
alacritty
Alexandre LUCAZEAU 2022-01-10 10:30:48 +01:00
parent 1519f31ab4
commit f36fc587d0
5 changed files with 46 additions and 3 deletions

View File

@ -12,6 +12,7 @@
./services.nix
./scanner.nix
./packages.nix
./synergyC.nix
];
# Use the systemd-boot EFI boot loader.
@ -27,6 +28,18 @@ services.printing.enable = true;
services.printing.drivers = [ pkgs.brlaser ];
# Video acceleration
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
vaapiVdpau
libvdpau-va-gl
];
};
# hardware.opengl.extraPackages;
# Enable Bluetooth
hardware.bluetooth.enable = true;
@ -65,6 +78,7 @@ services.blueman.enable = true;
unmanaged = [ "interface-name:ve-*" ];
};
firewall.enable = true;
firewall.allowedTCPPorts = [ 24800 ];
extraHosts =
''
10.105.42.181 blog.example.fr php.example.com wordpress.example.com wp.example.com

11
nixos/synergyC.nix Normal file
View File

@ -0,0 +1,11 @@
{ config, lib, pkgs, ...} : {
services = {
synergy.client = {
enable = true;
screenName = "Alexos";
serverAddress = "192.168.10.106";
autoStart = true;
};
};
}

View File

@ -1,10 +1,11 @@
{ pkgs, ... }: {
{ pkgs, config, ... }: {
imports = [
./packages.nix
./gnupg.nix
./git.nix
./variables.nix
./mails.nix
./starship.nix
#./mails.nix
];
home.keyboard = {
layout = "fr";

View File

@ -43,6 +43,7 @@
passwordCommand = "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.password-store/mails.gpg";
smtp = {
host = "smtp.dri.fr";
port = 587;
};
};
};

View File

@ -13,9 +13,25 @@
zathura
rofi
rofi-pass
pdfarranger
poppler_utils
simple-scan
brightnessctl
chromium
conky
gimp
scrot
papirus-icon-theme
ganttproject-bin
audio-recorder
starship
poppler_utils
conky
lua
zola
tint2
yadm
pandoc
hugo
whois
];
}