Files
nix-flake/modules/features/applications/cli/fastfetch.nix
T

18 lines
690 B
Nix

{ inputs, self, ... }: let
optionName = "features.applications.cli.fastfetch.enable";
in {
imports = [ (inputs.helpers.mkStandardFeature.flakeModule "global" optionName "`fastfetch`") ];
flake.nixosModules.global = { pkgs, lib, config, ... }: {
imports = [ (inputs.helpers.mkStandardFeature.nixosModule { inherit config optionName; } {
environment.systemPackages = [ pkgs.fastfetch ];
}) ];
};
flake.homeModules.global = { pkgs, lib, config, ... }: {
imports = [ (inputs.helpers.mkStandardFeature.homeModule { inherit config optionName; } {
programs.zsh.initContent = lib.mkOrder 1500 "fastfetch";
programs.fastfetch.enable = true;
}) ];
};
}