From 21eb94955727afb1a7e7b16d61bfa9dd2860bbb5 Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 17 Jul 2023 22:37:53 +0200 Subject: [PATCH] feat: enable nixos-hardware for alice --- alice/default.nix | 3 ++- flake.lock | 16 ++++++++++++++++ flake.nix | 3 ++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/alice/default.nix b/alice/default.nix index add19c2..0ef15eb 100644 --- a/alice/default.nix +++ b/alice/default.nix @@ -1,7 +1,8 @@ -_: let +{nixos-hardware, ...}: let password = "$y$j9T$g/a4KaQ5VitWI9ZtAh9i3/$wjejk5W8LMc0gaVgw69kwrKLqBgZ95ekaOl/GaTOZVC"; in { imports = [ + nixos-hardware.nixosModules.lenovo-thinkpad-x270 ./hardware-configuration.nix ]; diff --git a/flake.lock b/flake.lock index e407174..a26476f 100644 --- a/flake.lock +++ b/flake.lock @@ -197,6 +197,21 @@ "type": "github" } }, + "nixos-hardware": { + "locked": { + "lastModified": 1689320556, + "narHash": "sha256-vODUkZLWFVCvo1KPK3dC2CbXjxa9antEn5ozwlcTr48=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "d4ea64f2063820120c05f6ba93ee02e6d4671d6b", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixos-hardware", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1689503327, @@ -271,6 +286,7 @@ "gh-nvim": "gh-nvim", "home-manager": "home-manager_2", "impermanence": "impermanence", + "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "nixpkgs-unstable": "nixpkgs-unstable", "nur": "nur", diff --git a/flake.nix b/flake.nix index 93d8658..7ee362b 100644 --- a/flake.nix +++ b/flake.nix @@ -1,8 +1,9 @@ { inputs = { impermanence.url = "github:nix-community/impermanence"; - nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; + nixos-hardware.url = "github:NixOS/nixos-hardware"; nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; nur.url = "github:nix-community/NUR"; agenix = {