Add with pkgs to configuration.nix
This commit is contained in:
parent
ffd6b664cd
commit
bdf7e9e242
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue