Add with pkgs to configuration.nix

This commit is contained in:
coolneng 2021-11-16 16:12:01 +01:00
parent ffd6b664cd
commit bdf7e9e242
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 7 additions and 9 deletions

View File

@ -1,9 +1,11 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with pkgs;
{ {
# Kernel configuration # Kernel configuration
boot = { boot = {
kernelPackages = pkgs.linuxPackages_zen; kernelPackages = linuxPackages_zen;
kernelParams = kernelParams =
[ "zfs.zfs_arc_max=1073741824" "zfs.zfs_arc_meta_limit_percent=90" ]; [ "zfs.zfs_arc_max=1073741824" "zfs.zfs_arc_meta_limit_percent=90" ];
kernelModules = [ "i915" "acpi_call" "kvm-intel" ]; kernelModules = [ "i915" "acpi_call" "kvm-intel" ];
@ -21,11 +23,7 @@
lib.mkDefault config.hardware.enableRedistributableFirmware; lib.mkDefault config.hardware.enableRedistributableFirmware;
services.fwupd.enable = true; services.fwupd.enable = true;
hardware.opengl.extraPackages = with pkgs; [ hardware.opengl.extraPackages = [ vaapiIntel vaapiVdpau libvdpau-va-gl ];
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
# Bootloader configuration # Bootloader configuration
boot.loader = { boot.loader = {
@ -52,7 +50,7 @@
gc-keep-outputs = true gc-keep-outputs = true
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
package = pkgs.nixUnstable; package = nixUnstable;
}; };
# Clean tmp directory on shutdown # Clean tmp directory on shutdown
@ -85,11 +83,11 @@
isNormalUser = true; isNormalUser = true;
home = "/home/coolneng"; home = "/home/coolneng";
extraGroups = [ "wheel" "video" "audio" "libvirtd" "lp" ]; extraGroups = [ "wheel" "video" "audio" "libvirtd" "lp" ];
shell = pkgs.fish; shell = fish;
}; };
# Set shell for root user # Set shell for root user
users.users.root.shell = pkgs.fish; users.users.root.shell = fish;
# Specify secrets # Specify secrets
age = { age = {