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