Add nixos-hardware for system76

This commit is contained in:
Oliver Davies 2024-09-21 09:58:08 +01:00
parent 9fe266acc5
commit fec58e770d
3 changed files with 30 additions and 1 deletions

View file

@ -39,6 +39,22 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1726724509,
"narHash": "sha256-sVeAM1tgVi52S1e29fFBTPUAFSzgQwgLon3CrztXGm8=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "10d5e0ecc32984c1bf1a9a46586be3451c42fd94",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1725407940,
@ -141,6 +157,7 @@
"root": {
"inputs": {
"home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable",
"opdavies-nvim": "opdavies-nvim"

View file

@ -3,6 +3,8 @@
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-24.05";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
@ -13,7 +15,13 @@
};
outputs =
{ nixpkgs, self, ... }@inputs:
{
home-manager,
nixos-hardware,
nixpkgs,
self,
...
}@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
@ -23,6 +31,7 @@
mkNixos = import ./lib/nixos {
inherit
inputs
nixos-hardware
pkgs
self
username

View file

@ -1,5 +1,6 @@
{
inputs,
nixos-hardware,
pkgs,
self,
username,
@ -51,5 +52,7 @@ inputs.nixpkgs.lib.nixosSystem {
configuration
hardwareConfiguration
nixos-hardware.nixosModules.system76
];
}