dotfiles

My PC Dotfiles & Website

modules/hosts/wsl/_fetch.nix (543B)


 1## WSL Fastfetch ##
 2{config, ...}: let
 3  inherit (config.flake) files;
 4in {
 5  nixos = {pkgs, ...}: {
 6    environment.etc."fastfetch/config.jsonc".text = let
 7      original = builtins.fromJSON files.fetch;
 8      omitted = ["bios" "display" "de" "wm" "lm" "wmtheme" "theme" "icons" "cursor"];
 9    in
10      pkgs.lib.mkForce (builtins.toJSON (original
11        // {
12          modules =
13            builtins.filter
14            (entry: builtins.isString entry || !(builtins.elem entry.type omitted))
15            original.modules;
16        }));
17  };
18}