Old-materusPC: use unstable kernel and nvidia, rename fonts.fonts;

This commit is contained in:
Mateusz Słodkowicz 2024-09-21 11:08:41 +02:00
parent 6bb1330d70
commit fecfdec551
Signed by: materus
SSH Key Fingerprint: SHA256:rzVduzTiiszuYfLPYD0SDZV+g8lxhpcRgpbOZA1X0Uo
2 changed files with 7 additions and 5 deletions

View File

@ -2,8 +2,10 @@
# 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).
{ config, pkgs, materusArg, ... }: { config, pkgs, materusCfg, materusArg, ... }:
let
unstable = import materusCfg.materusFlake.inputs.nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; nvidia.acceptLicense = true; }; };
in
{ {
imports = imports =
[ [
@ -33,7 +35,7 @@
}; };
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.kernelPackages = pkgs.linuxPackages_zen; boot.kernelPackages = unstable.linuxPackages_zen;
boot.tmp.useTmpfs = true; boot.tmp.useTmpfs = true;
services.flatpak.enable = true; services.flatpak.enable = true;
@ -231,7 +233,7 @@
fonts.fontDir.enable = true; fonts.fontDir.enable = true;
fonts.enableDefaultPackages = true; fonts.enableDefaultPackages = true;
fonts.fonts = with pkgs; [ fonts.packages = with pkgs; [
dejavu_fonts dejavu_fonts
hack-font hack-font
noto-fonts noto-fonts

View File

@ -2,7 +2,7 @@
{ {
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = { hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.latest;
modesetting.enable = true; modesetting.enable = true;
nvidiaSettings = true; nvidiaSettings = true;