20 lines
848 B
Nix
20 lines
848 B
Nix
{ inputs, self, ... }: {
|
|
imports = [ (inputs.helpers.mkMirroredModulesFlakeModule "globalOptions" ({ lib, ... }: {
|
|
options.features.applications.cli.fastfetch.enable = lib.mkEnableOption "`fastfetch`";
|
|
})) ];
|
|
|
|
flake.nixosModules.global = { pkgs, lib, config, ... }: {
|
|
config = lib.mkIf (config.features.applications.cli.fastfetch.enable) (inputs.helpers.mkIfElse (config.features.nixos.home-manager.enable) {
|
|
home-manager.users.grey.features.applications.cli.fastfetch.enable = lib.mkDefault true;
|
|
} {
|
|
environment.systemPackages = [ pkgs.fastfetch ];
|
|
});
|
|
};
|
|
|
|
flake.homeModules.global = { pkgs, lib, config, ... }: {
|
|
config = lib.mkIf (config.features.applications.cli.fastfetch.enable) ({
|
|
programs.zsh.initContent = lib.mkOrder 1500 "fastfetch";
|
|
programs.fastfetch.enable = true;
|
|
});
|
|
};
|
|
} |