add nixos-hardware for my laptop

closes #20
This commit is contained in:
Pim Kunis 2023-10-22 22:21:59 +02:00
parent 92173b725c
commit 81313d1d5d
3 changed files with 20 additions and 2 deletions

View file

@ -6,7 +6,6 @@
boot = {
loader.systemd-boot.enable = true;
kernelParams = [ "i915.enable_psr=0" ];
};
networking.hostName = "x260";

View file

@ -82,6 +82,22 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1697748412,
"narHash": "sha256-5VSB63UE/O191cuZiGHbCJ9ipc7cGKB8cHp0cfusuyo=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "72d53d51704295f1645d20384cd13aecc182f624",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1696697597,
@ -118,6 +134,7 @@
"agenix": "agenix",
"home-manager": "home-manager",
"homeage": "homeage",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nur": "nur"
}

View file

@ -17,15 +17,17 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
outputs = { nixpkgs, home-manager, homeage, agenix, nur, ... }: {
outputs = { nixpkgs, home-manager, homeage, agenix, nur, nixos-hardware, ... }: {
nixosConfigurations.pim = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ nixpkgs.overlays = [ nur.overlay ]; }
./configuration.nix
agenix.nixosModules.default
nixos-hardware.nixosModules.lenovo-thinkpad-x260
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;