Add configs for a new kubernetes cluster on NixOS.
This commit is contained in:
25
nix/kubernetes/roles/nvme/default.nix
Normal file
25
nix/kubernetes/roles/nvme/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
options.me = {
|
||||
nvme.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Whether we want to install nvme.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.me.nvme.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
nvme-cli
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user