Add nixos-hardware
This commit is contained in:
parent
d60fad5545
commit
650bcbb2de
3 changed files with 27 additions and 1 deletions
17
flake.lock
generated
17
flake.lock
generated
|
|
@ -187,6 +187,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1718265846,
|
||||
"narHash": "sha256-h4MnTID6ciFxtTvtl+ibXMKaG6iLMezCtUvKIfFG7r0=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "d75003136c0fc94ee60e51806c2801ff572d06a6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "master",
|
||||
"repo": "nixos-hardware",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1717952948,
|
||||
|
|
@ -300,6 +316,7 @@
|
|||
"home-manager": "home-manager",
|
||||
"krops": "krops",
|
||||
"nix-pre-commit-hooks": "nix-pre-commit-hooks",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgsMaster": "nixpkgsMaster",
|
||||
"nur": "nur",
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@
|
|||
nix-pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nix-pre-commit-hooks.url = "github:cachix/git-hooks.nix/master";
|
||||
|
||||
nixos-hardware.url = "github:nixos/nixos-hardware/master";
|
||||
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
|
||||
nixpkgsMaster.url = "github:NixOS/nixpkgs/master";
|
||||
|
|
@ -133,6 +135,7 @@
|
|||
|
||||
nixosConfigurations = nixpkgs.lib.mapAttrs
|
||||
(hostname: { system
|
||||
, extraModules ? [ ]
|
||||
, targetHost ? hostname
|
||||
, nixpkgs ? inputs.nixpkgs
|
||||
}: nixpkgs.lib.nixosSystem rec {
|
||||
|
|
@ -169,7 +172,7 @@
|
|||
home-manager.nixosModules.home-manager
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
inputs.disko.nixosModules.disko
|
||||
];
|
||||
] ++ extraModules;
|
||||
})
|
||||
(import ./hosts inputs);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
{ ... }@inputs:
|
||||
let
|
||||
hardware = inputs.nixos-hardware.nixosModules;
|
||||
in
|
||||
{
|
||||
aluminium = {
|
||||
targetHost = "192.168.0.1";
|
||||
|
|
@ -30,5 +33,8 @@
|
|||
copper = {
|
||||
system = "x86_64-linux";
|
||||
targetHost = "copper.lan.bw.jalr.de";
|
||||
extraModules = [
|
||||
hardware.framework-16-7040-amd
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue