dustbowl: add nixos-hardware

This commit is contained in:
joachimschmidt557 2025-10-16 15:09:44 +02:00
parent df71b120b8
commit 3df12aafe3
No known key found for this signature in database
GPG key ID: E0B575BE2884ACC5
3 changed files with 27 additions and 2 deletions

17
flake.lock generated
View file

@ -18,6 +18,22 @@
"type": "github" "type": "github"
} }
}, },
"nixos-hardware": {
"locked": {
"lastModified": 1760106635,
"narHash": "sha256-2GoxVaKWTHBxRoeUYSjv0AfSOx4qw5CWSFz2b+VolKU=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "9ed85f8afebf2b7478f25db0a98d0e782c0ed903",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1759036355, "lastModified": 1759036355,
@ -54,6 +70,7 @@
"root": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-bitwig": "nixpkgs-bitwig" "nixpkgs-bitwig": "nixpkgs-bitwig"
} }

View file

@ -7,8 +7,9 @@
flake = false; flake = false;
}; };
inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master";
outputs = { self, nixpkgs, nixpkgs-bitwig, flake-utils }: outputs = { self, nixpkgs, nixpkgs-bitwig, flake-utils, nixos-hardware }:
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
let let
pkgs = import nixpkgs { pkgs = import nixpkgs {
@ -81,7 +82,12 @@
privilegeEscalationCommand = [ "doas" ]; privilegeEscalationCommand = [ "doas" ];
}; };
imports = [ (import ./nixos/dustbowl.nix { nixpkgs = nixpkgs; }) ]; imports = [
(import ./nixos/dustbowl.nix { nixpkgs = nixpkgs; })
nixos-hardware.nixosModules.asus-battery
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-cpu-intel
];
}; };
}; };

View file

@ -140,6 +140,8 @@
openrgb openrgb
]; ];
hardware.asus.battery.chargeUpto = 80;
# Configure console # Configure console
console = { console = {
font = "Lat2-Terminus16"; font = "Lat2-Terminus16";