1
0

Specific nixpkgs per host

This commit is contained in:
clerie 2023-03-23 17:09:54 +01:00
parent d30cbbf99d
commit e38180a5f0
3 changed files with 21 additions and 1 deletions

View File

@ -36,10 +36,27 @@
"type": "github"
}
},
"nixpkgs-schule": {
"locked": {
"lastModified": 1679437018,
"narHash": "sha256-vOuiDPLHSEo/7NkiWtxpHpHgoXoNmrm+wkXZ6a072Fc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "19cf008bb18e47b6e3b4e16e32a9a4bdd4b45f7e",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixos-exporter": "nixos-exporter",
"nixpkgs": "nixpkgs",
"nixpkgs-schule": "nixpkgs-schule",
"solid-xmpp-alarm": "solid-xmpp-alarm"
}
},

View File

@ -1,6 +1,7 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-schule.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-exporter = {
url = "git+https://git.clerie.de/clerie/nixos-exporter.git";
inputs.nixpkgs.follows = "nixpkgs";

View File

@ -1,7 +1,9 @@
{ self, nixpkgs, nixos-exporter, solid-xmpp-alarm, ... }@inputs:
rec {
generateNixosSystem = name: nixpkgs.lib.nixosSystem {
generateNixosSystem = name: let
localNixpkgs = nixpkgs.lib.attrByPath [ "nixpkgs-${name}" ] nixpkgs inputs;
in localNixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ ... }: {