Remove unnecessary imports and upgrade to Nvidia 565

This commit is contained in:
Jimbo 2024-10-28 17:06:52 -04:00
parent af32ce3d45
commit ff6f206430
14 changed files with 15 additions and 43 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
result

View file

@ -45,7 +45,7 @@
specialArgs = { specialArgs = {
inherit inherit
unstable unstable
chaotic chaotic
hardware hardware
lanzaboote lanzaboote
mailserver mailserver

View file

@ -1,9 +1,5 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd = { boot.initrd = {
availableKernelModules = [ availableKernelModules = [
"xhci_pci" "xhci_pci"

View file

@ -1,9 +1,5 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = { boot = {
blacklistedKernelModules = [ blacklistedKernelModules = [
"pcspkr" "pcspkr"

View file

@ -1,9 +1,5 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = { boot = {
kernelModules = [ "kvm-intel" ]; kernelModules = [ "kvm-intel" ];
initrd = { initrd = {

View file

@ -20,13 +20,9 @@ let
in { in {
boot = { boot = {
kernelPackages = pkgs.unstable.linuxPackages_zen; kernelPackages = pkgs.unstable.linuxPackages_zen;
blacklistedKernelModules = [ blacklistedKernelModules = [ "pcspkr" ];
"pcspkr"
];
kernel.sysctl."vm.max_map_count" = 2147483642; kernel.sysctl."vm.max_map_count" = 2147483642;
kernelParams = commonKernelParams ++ [ kernelParams = commonKernelParams ++ [ "vfio-pci.ids=10de:1f82,10de:10fa" ];
"vfio-pci.ids=10de:1f82,10de:10fa"
];
# Encryption and TPM # Encryption and TPM
initrd = { initrd = {

View file

@ -1,9 +1,5 @@
{ config, lib, modulesPath, ... }: { config, lib, modulesPath, ... }:
{ {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = { boot = {
initrd = { initrd = {
availableKernelModules = [ availableKernelModules = [

View file

@ -1,16 +1,12 @@
{ config, lib, modulesPath, ... }: { config, lib, modulesPath, ... }:
{ {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = { boot = {
kernelModules = [ "kvm-intel" ];
initrd = { initrd = {
availableKernelModules = [ "xhci_pci" "sdhci_pci" ]; availableKernelModules = [ "xhci_pci" "sdhci_pci" ];
kernelModules = [ "dm-snapshot" ]; kernelModules = [ "dm-snapshot" ];
}; };
kernelModules = [ "kvm-intel" ];
}; };
fileSystems = { fileSystems = {

View file

@ -1,10 +1,7 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = { boot = {
kernelModules = [ "kvm-amd" ];
initrd = { initrd = {
availableKernelModules = [ availableKernelModules = [
"xhci_pci" "xhci_pci"
@ -16,7 +13,6 @@
"rtsx_usb_sdmmc" "rtsx_usb_sdmmc"
]; ];
}; };
kernelModules = [ "kvm-amd" ];
}; };
fileSystems = { fileSystems = {

View file

@ -1,7 +1,5 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = { boot = {
initrd = { initrd = {
availableKernelModules = [ ]; availableKernelModules = [ ];

View file

@ -1,10 +1,6 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = { boot = {
kernelModules = [ "kvm-intel" ]; kernelModules = [ "kvm-intel" ];
initrd = { initrd = {

View file

@ -7,7 +7,9 @@
isNormalUser = true; isNormalUser = true;
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
(builtins.readFile ../../../../../hosts/firefly/id_ed25519.pub) (builtins.readFile ../../../../../hosts/firefly/id_ed25519.pub)
(builtins.readFile ../../../../../hosts/shuttleworth/id_ed25519.pub) (builtins.readFile ../../../../../hosts/detritus/id_ed25519.pub)
(builtins.readFile ../../../../../hosts/shuttle/id_ed25519.pub)
(builtins.readFile ../../../../../hosts/lacros/id_ed25519.pub) (builtins.readFile ../../../../../hosts/lacros/id_ed25519.pub)
(builtins.readFile ../../../../../hosts/redmond/id_ed25519.pub) (builtins.readFile ../../../../../hosts/redmond/id_ed25519.pub)
(builtins.readFile ../../../../../hosts/treefruit/id_ed25519.pub) (builtins.readFile ../../../../../hosts/treefruit/id_ed25519.pub)
@ -15,7 +17,7 @@
(builtins.readFile ../../../../../hosts/cyberspark/id_ed25519.pub) (builtins.readFile ../../../../../hosts/cyberspark/id_ed25519.pub)
(builtins.readFile ../../../../../hosts/bomberman/id_ed25519.pub) (builtins.readFile ../../../../../hosts/bomberman/id_ed25519.pub)
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 pixel9" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 Pixel9"
]; ];
extraGroups = [ extraGroups = [
"wheel" "wheel"

View file

@ -2,7 +2,10 @@
{ {
nix = { nix = {
settings = { settings = {
experimental-features = "nix-command flakes"; experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true; auto-optimise-store = true;
}; };
gc = { gc = {

View file

@ -4,7 +4,7 @@
hardware.nvidia = { hardware.nvidia = {
modesetting.enable = true; modesetting.enable = true;
nvidiaSettings = false; nvidiaSettings = false;
package = config.boot.kernelPackages.nvidiaPackages.latest; package = config.boot.kernelPackages.nvidiaPackages.beta;
open = false; open = false;
}; };
} }