17 lines
341 B
Nix
17 lines
341 B
Nix
{
|
|
config,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
cfg = config.nixos.programs.microfetch;
|
|
in {
|
|
options = {
|
|
nixos.programs.microfetch.enable = mkEnableOption "Enables microfetch";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [inputs.microfetch.packages.x86_64-linux.default];
|
|
};
|
|
}
|