Wine and games and stuff
This commit is contained in:
parent
38b20421c0
commit
49211ccdd4
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
|
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
|
||||||
user_pref("full-screen-api.ignore-widgets", true);
|
// user_pref("full-screen-api.ignore-widgets", true);
|
||||||
user_pref("media.ffmpeg.vaapi.enabled", true);
|
user_pref("media.ffmpeg.vaapi.enabled", true);
|
||||||
user_pref("media.rdd-vpx.enabled", true);
|
user_pref("media.rdd-vpx.enabled", true);
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running `nixos-help`).
|
# and in the NixOS manual (accessible by running `nixos-help`).
|
||||||
|
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, nixpkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
dbus-sway-environment = pkgs.writeTextFile {
|
dbus-sway-environment = pkgs.writeTextFile {
|
||||||
|
@ -25,18 +25,22 @@ let
|
||||||
name = "configure-gtk";
|
name = "configure-gtk";
|
||||||
destination = "/bin/configure-gtk";
|
destination = "/bin/configure-gtk";
|
||||||
executable = true;
|
executable = true;
|
||||||
text = let
|
text =
|
||||||
|
let
|
||||||
schema = pkgs.gsettings-desktop-schemas;
|
schema = pkgs.gsettings-desktop-schemas;
|
||||||
datadir = "${schema}/share/gsettings-schemas/${schema.name}";
|
datadir = "${schema}/share/gsettings-schemas/${schema.name}";
|
||||||
in ''
|
in
|
||||||
|
''
|
||||||
export XDG_DATA_DIRS="${datadir}:$XDG_DATA_DIRS
|
export XDG_DATA_DIRS="${datadir}:$XDG_DATA_DIRS
|
||||||
gnome_schema = org.gnome.desktop.interface
|
gnome_schema = org.gnome.desktop.interface
|
||||||
gsettings set $gnome_schema gtk-theme 'Catppuccin-Mocha'
|
gsettings set $gnome_schema gtk-theme 'Catppuccin-Mocha'
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[
|
||||||
|
# Include the results of the hardware scan.
|
||||||
./thinker-hardware.nix
|
./thinker-hardware.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -46,9 +50,23 @@ in {
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
nixpkgs.config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
packageOverrides = pkgs: {
|
||||||
|
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport = true;
|
driSupport = 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
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
|
@ -161,6 +179,7 @@ in {
|
||||||
krita
|
krita
|
||||||
libinput
|
libinput
|
||||||
libinput-gestures
|
libinput-gestures
|
||||||
|
lutris
|
||||||
mako
|
mako
|
||||||
mosh
|
mosh
|
||||||
nmap
|
nmap
|
||||||
|
@ -172,6 +191,7 @@ in {
|
||||||
(pass.withExtensions (exts: [ exts.pass-otp ]))
|
(pass.withExtensions (exts: [ exts.pass-otp ]))
|
||||||
pavucontrol
|
pavucontrol
|
||||||
playerctl
|
playerctl
|
||||||
|
pulseaudio
|
||||||
pulsemixer
|
pulsemixer
|
||||||
rclone
|
rclone
|
||||||
restic
|
restic
|
||||||
|
@ -182,6 +202,7 @@ in {
|
||||||
skim
|
skim
|
||||||
slurp
|
slurp
|
||||||
sops
|
sops
|
||||||
|
steam
|
||||||
swaybg
|
swaybg
|
||||||
swayidle
|
swayidle
|
||||||
swaylock
|
swaylock
|
||||||
|
@ -192,6 +213,7 @@ in {
|
||||||
waybar
|
waybar
|
||||||
wget
|
wget
|
||||||
wireplumber
|
wireplumber
|
||||||
|
wine
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
wofi
|
wofi
|
||||||
xh
|
xh
|
||||||
|
|
Reference in a new issue