1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Fix hardware configuration, add nvidia and remove swap

This commit is contained in:
RGBCube 2024-06-13 14:08:25 +03:00
parent 765f4fa84f
commit 9c362a3526
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
4 changed files with 28 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{ config, lib, ... }: with lib; merge
(systemConfiguration {
system.stateVersion = "23.05";
system.stateVersion = "24.11";
nixpkgs.hostPlatform = "x86_64-linux";
time.timeZone = "Europe/Istanbul";
@ -27,5 +27,5 @@
})
(homeConfiguration {
home.stateVersion = "23.05";
home.stateVersion = "24.11";
})

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: with lib;
{ hardware, config, lib, ... }: with lib;
systemConfiguration {
boot.loader = {
@ -19,6 +19,13 @@ systemConfiguration {
boot.kernelModules = [ "kvm-intel" ];
imports = [ hardware.nixosModules.common-gpu-nvidia ];
hardware.nvidia.prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
fileSystems."/" = {
device = "/dev/disk/by-label/root";
fsType = "btrfs";
@ -31,10 +38,6 @@ systemConfiguration {
options = [ "noatime" ];
};
swapDevices = [{
device = "/dev/disk/by-label/swap";
}];
hardware.enableAllFirmware = true;
hardware.cpu.intel.updateMicrocode = true;
}