Add a config for the disc recovery machine.

This commit is contained in:
Tom Alexander
2025-10-25 15:00:14 -04:00
parent 2f05b9e600
commit 24b089a313
21 changed files with 1373 additions and 26 deletions

View File

@@ -0,0 +1,34 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
options.me = {
recovery.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install recovery.";
};
};
config = lib.mkIf config.me.recovery.enable (
lib.mkMerge [
{
environment.systemPackages = with pkgs; [
ddrescue
];
}
(lib.mkIf config.me.graphical {
environment.systemPackages = with pkgs; [
ddrescueview
];
})
]
);
}