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:
parent
765f4fa84f
commit
9c362a3526
4 changed files with 28 additions and 7 deletions
|
@ -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";
|
||||
})
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue