Commit ff85dd13 authored by fpletz's avatar fpletz 🚧
Browse files

add nixos-hardware as a flake

parent d1235f62
...@@ -118,6 +118,22 @@ ...@@ -118,6 +118,22 @@
"type": "github" "type": "github"
} }
}, },
"nixos-hardware": {
"locked": {
"lastModified": 1647447644,
"narHash": "sha256-Di7ZCXjQKEys+jxgl8Mp7a8nowRSeAbzH8c9QNYkw2k=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "32f61571b486efc987baca553fb35df22532ba63",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1647800324, "lastModified": 1647800324,
...@@ -141,6 +157,7 @@ ...@@ -141,6 +157,7 @@
"luftschleuse2": "luftschleuse2", "luftschleuse2": "luftschleuse2",
"muccc-api": "muccc-api", "muccc-api": "muccc-api",
"nixos-generators": "nixos-generators", "nixos-generators": "nixos-generators",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
} }
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
muccc-api = { muccc-api = {
url = "git+https://gitlab.muc.ccc.de/muCCC/api"; url = "git+https://gitlab.muc.ccc.de/muCCC/api";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
...@@ -24,7 +25,8 @@ ...@@ -24,7 +25,8 @@
}; };
}; };
outputs = { self, nixpkgs, flake-utils, muccc-api, luftschleuse2, home-manager, nixos-generators, ... }: let outputs = { self, nixpkgs, flake-utils, nixos-hardware, muccc-api
, luftschleuse2, home-manager, nixos-generators, ... }: let
supportedSystems = flake-utils.lib.defaultSystems; supportedSystems = flake-utils.lib.defaultSystems;
in flake-utils.lib.eachSystem supportedSystems (system: let in flake-utils.lib.eachSystem supportedSystems (system: let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
...@@ -43,7 +45,7 @@ ...@@ -43,7 +45,7 @@
meta = { meta = {
nixpkgs = import nixpkgs { }; nixpkgs = import nixpkgs { };
specialArgs.flakes = { specialArgs.flakes = {
inherit self nixpkgs muccc-api luftschleuse2 home-manager; inherit self nixpkgs nixos-hardware muccc-api luftschleuse2 home-manager;
}; };
}; };
......
{ config, pkgs, lib, ... }: { config, pkgs, lib, flakes, ... }:
{ {
imports = [ imports = [
"${fetchTarball "https://github.com/NixOS/nixos-hardware/archive/9886a06e4745edb31587d0e9481ad82d35f0d593.tar.gz"}/raspberry-pi/4" flakes.nixos-hardware.nixosModules.raspberry-pi-4
]; ];
fileSystems = { fileSystems = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment