add srvos for hcloud profile

This commit is contained in:
Jörg Thalheim 2023-05-14 18:18:49 +02:00
parent c10124a786
commit 4334780de4
5 changed files with 46 additions and 2 deletions

View File

@ -40,9 +40,30 @@
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs",
"srvos": "srvos",
"treefmt-nix": "treefmt-nix"
}
},
"srvos": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1683894417,
"narHash": "sha256-Z7rbmaR76lY4vwhaG9yQWmLYl1yIQ4g2wrPkQW+tJJw=",
"owner": "numtide",
"repo": "srvos",
"rev": "bca63963ab057d1075216e4db5c685dd6bd715d5",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "srvos",
"type": "github"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [

View File

@ -7,6 +7,10 @@
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
srvos.url = "github:numtide/srvos";
# Use the version of nixpkgs that has been tested to work with SrvOS
srvos.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ flake-parts, ... }:
@ -15,6 +19,7 @@
imports = [
inputs.treefmt-nix.flakeModule
./terraform/targets/flake-module.nix
./nix/modules/flake-module.nix
];
perSystem = { config, pkgs, ... }: {
treefmt = {

View File

@ -0,0 +1,12 @@
{ inputs, ... }: {
flake.nixosModules = {
hcloud.imports = [
inputs.srvos.nixosModules.server
inputs.srvos.nixosModules.hardware-hetzner-cloud
];
nixos-wiki.imports = [
./nixos-wiki.nix
];
};
}

View File

@ -0,0 +1,3 @@
{...}: {
}

View File

@ -1,3 +1,6 @@
{...}: {
{self, ...}: {
imports = [
self.nixosModules.nixos-wiki
self.nixosModules.hcloud
];
}