diff --git a/configuration.nix b/configuration.nix index 961ac6d..f5a0860 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,7 +6,6 @@ boot = { loader.systemd-boot.enable = true; - kernelParams = [ "i915.enable_psr=0" ]; }; networking.hostName = "x260"; diff --git a/flake.lock b/flake.lock index 1cf7843..0ce5977 100644 --- a/flake.lock +++ b/flake.lock @@ -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" } diff --git a/flake.nix b/flake.nix index 942337f..7190ff3 100644 --- a/flake.nix +++ b/flake.nix @@ -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;