c2: hw tuning

This commit is contained in:
Henri Dohmen 2025-04-19 23:43:16 +02:00
parent 62d3765e58
commit f52a8f225b
3 changed files with 36 additions and 5 deletions

17
flake.lock generated
View file

@ -20,6 +20,22 @@
"type": "github" "type": "github"
} }
}, },
"nixos-hardware": {
"locked": {
"lastModified": 1744633460,
"narHash": "sha256-fbWE4Xpw6eH0Q6in+ymNuDwTkqmFmtxcQEmtRuKDTTk=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "9a049b4a421076d27fee3eec664a18b2066824cb",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1744932701, "lastModified": 1744932701,
@ -39,6 +55,7 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
} }

View file

@ -1,6 +1,7 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -11,6 +12,7 @@
{ {
self, self,
nixpkgs, nixpkgs,
nixos-hardware,
home-manager, home-manager,
}@inputs: }@inputs:
let let

View file

@ -1,14 +1,26 @@
{ mod, ... }: { mod, inputs, ... }:
{ {
networking.hostName = "c2"; networking.hostName = "c2";
imports = with mod; [ imports =
collections.pc-common with mod;
./hardware-configuration.nix [
]; collections.pc-common
./hardware-configuration.nix
]
++ (with inputs.nixos-hardware.nixosModules; [
common-cpu-intel
common-pc-laptop
common-pc-laptop-ssd
]);
boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.efi.efiSysMountPoint = "/boot/efi";
powerManagement = {
enable = true;
cpuFreqGovernor = "ondemand";
};
# ====== DON'T CHANGE ====== # ====== DON'T CHANGE ======
system.stateVersion = "25.05"; system.stateVersion = "25.05";
} }