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
16
flake.lock
generated
16
flake.lock
generated
|
@ -384,6 +384,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"hardware": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1718265846,
|
||||||
|
"narHash": "sha256-h4MnTID6ciFxtTvtl+ibXMKaG6iLMezCtUvKIfFG7r0=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"rev": "d75003136c0fc94ee60e51806c2801ff572d06a6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"homeManager": {
|
"homeManager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -681,6 +696,7 @@
|
||||||
"ghostty": "ghostty",
|
"ghostty": "ghostty",
|
||||||
"ghosttyModule": "ghosttyModule",
|
"ghosttyModule": "ghosttyModule",
|
||||||
"github2forgejo": "github2forgejo",
|
"github2forgejo": "github2forgejo",
|
||||||
|
"hardware": "hardware",
|
||||||
"homeManager": "homeManager",
|
"homeManager": "homeManager",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"hyprpicker": "hyprpicker",
|
"hyprpicker": "hyprpicker",
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
|
hardware.url = "github:NixOS/nixos-hardware";
|
||||||
|
|
||||||
homeManager = {
|
homeManager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, ... }: with lib; merge
|
{ config, lib, ... }: with lib; merge
|
||||||
|
|
||||||
(systemConfiguration {
|
(systemConfiguration {
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "24.11";
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
||||||
time.timeZone = "Europe/Istanbul";
|
time.timeZone = "Europe/Istanbul";
|
||||||
|
@ -27,5 +27,5 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
(homeConfiguration {
|
(homeConfiguration {
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "24.11";
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }: with lib;
|
{ hardware, config, lib, ... }: with lib;
|
||||||
|
|
||||||
systemConfiguration {
|
systemConfiguration {
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
@ -19,6 +19,13 @@ systemConfiguration {
|
||||||
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
|
||||||
|
imports = [ hardware.nixosModules.common-gpu-nvidia ];
|
||||||
|
|
||||||
|
hardware.nvidia.prime = {
|
||||||
|
intelBusId = "PCI:0:2:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-label/root";
|
device = "/dev/disk/by-label/root";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
@ -31,10 +38,6 @@ systemConfiguration {
|
||||||
options = [ "noatime" ];
|
options = [ "noatime" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [{
|
|
||||||
device = "/dev/disk/by-label/swap";
|
|
||||||
}];
|
|
||||||
|
|
||||||
hardware.enableAllFirmware = true;
|
hardware.enableAllFirmware = true;
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue