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" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1725407940, "lastModified": 1725407940,
@ -141,6 +157,7 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"opdavies-nvim": "opdavies-nvim" "opdavies-nvim": "opdavies-nvim"

View file

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

View file

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