feat: add 'azure' cloud option (and generalized module)
This commit is contained in:
21
home/modules/cloud/hetzner.nix
Normal file
21
home/modules/cloud/hetzner.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
osConfig ? null,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
isNixOS = osConfig != null;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf config.cloud.hetzner.enable {
|
||||
warnings =
|
||||
lib.optional (!isNixOS)
|
||||
"hcloud module requires NixOS host configuration. This module will not work with standalone home-manager.";
|
||||
home = {
|
||||
packages = with pkgs; [ hcloud ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user