nixcfg/modules/nixos/apps/etcher/default.nix
2024-01-11 10:31:04 +00:00

23 lines
486 B
Nix

{ options, config, lib, pkgs, ... }:
with lib;
with lib.plusultra;
let
cfg = config.plusultra.apps.etcher;
in
{
options.plusultra.apps.etcher = with types; {
enable = mkBoolOpt false "Whether or not to enable etcher.";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs;
[
# Etcher is currently broken in nixpkgs, temporarily replaced with
# gnome disk utility.
# etcher
gnome.gnome-disk-utility
];
};
}