diff --git a/.github/workflows/build-anya.yaml b/.github/workflows/build-anya.yaml index f1684d5..314aec8 100644 --- a/.github/workflows/build-anya.yaml +++ b/.github/workflows/build-anya.yaml @@ -6,6 +6,9 @@ on: pull_request: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: pre_job: # continue-on-error: true # Uncomment once integration is finished diff --git a/.github/workflows/build-nishinoya.yaml b/.github/workflows/build-nishinoya.yaml index c9f7e62..33e0007 100644 --- a/.github/workflows/build-nishinoya.yaml +++ b/.github/workflows/build-nishinoya.yaml @@ -6,6 +6,9 @@ on: pull_request: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: pre_job: # continue-on-error: true # Uncomment once integration is finished diff --git a/.github/workflows/build-totoro.yaml b/.github/workflows/build-totoro.yaml index a974972..c3093c9 100644 --- a/.github/workflows/build-totoro.yaml +++ b/.github/workflows/build-totoro.yaml @@ -6,6 +6,9 @@ on: pull_request: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: pre_job: # continue-on-error: true # Uncomment once integration is finished diff --git a/.github/workflows/check-nix-format.yml b/.github/workflows/check-nix-format.yml index b47de8b..fee5bcf 100644 --- a/.github/workflows/check-nix-format.yml +++ b/.github/workflows/check-nix-format.yml @@ -2,6 +2,9 @@ name: Check that Nix files are formatted on: pull_request_target: types: [opened, synchronize, reopened, edited] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true permissions: contents: read jobs: diff --git a/homeManagerModules/fastfetchConfig.nix b/homeManagerModules/fastfetchConfig.nix index 2dbe6bb..e04d49e 100644 --- a/homeManagerModules/fastfetchConfig.nix +++ b/homeManagerModules/fastfetchConfig.nix @@ -10,13 +10,14 @@ let { "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", "logo": { - "source": "~/.config/fastfetch/asciiArt", + "source": "~/.config/fastfetch/logo", - "type": "file", + "type": "auto", "padding": { - "top": 0, + "top": 2, "left": 0 - } + }, + "height": 12 }, "display": { "separator": "  " @@ -96,33 +97,45 @@ let ] } ''; - asciiArt = '' + logo = pkgs.writeTextFile { + name = "logo"; + text = '' - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⡀⠀⠀⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣼⣾⣟⠳⢾⣷⡤⡀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠨⣿⣿⣿⣆⢙⢤⢺⠻⣿⣾⡖⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣟⣿⣿⣯⣾⣿⣿⣾⣿⡟⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⢿⣿⣿⡟⠟⣿⣿⢏⣿⡟⠀⠀⠀⠀ - ⠀⠀⠀⠀⢀⣀⣤⣤⣴⢾⠁⢜⣿⣷⣦⠹⡉⠓⠁⠈⡡⣻⣷⣄⡀⠀⠀⠀ - ⠀⠀⠀⠀⠈⢪⣇⣼⣿⣎⣱⡦⠔⠉⠑⡆⠀⠁⣀⢥⣿⣿⣿⡿⠷⣄⠀⠀ - ⠀⡀⠀⠀⠀⠀⢹⣿⣿⣿⡏⠀⠀⠀⡠⠀⣴⢊⣡⢿⢟⣿⣾⣷⣀⠹⣦⠀ - ⡌⡄⠀⠀⠀⠀⠈⣻⣿⣱⡇⢀⠠⠀⠀⢸⣿⣿⣿⣽⣿⣝⢿⣖⢺⡠⣿⡄ - ⣷⡀⠀⠀⠀⠀⠐⣪⣿⣷⣌⢃⠀⠀⠀⠀⢹⣿⣾⣿⣿⣿⣿⣿⣿⣻⡿⣿ - ⠸⣧⡀⠀⠀⠠⢮⣿⣿⣶⡿⠁⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣧⣿ - ⠀⠈⠻⠶⣤⣤⠾⢿⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⡿⠃ - ⠀⠀⠀⠀⠀⠀⠀⣈⢻⣃⠀⠀⠀⠀⠀⠀⠀⣴⣾⣿⣿⣿⣿⣿⣉⡉⠀⠀ - ''; + ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⡀⠀⠀⠀⠀⠀⠀⠀ + ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣼⣾⣟⠳⢾⣷⡤⡀⠀⠀⠀⠀ + ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠨⣿⣿⣿⣆⢙⢤⢺⠻⣿⣾⡖⠀⠀⠀ + ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣟⣿⣿⣯⣾⣿⣿⣾⣿⡟⠀⠀⠀ + ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⢿⣿⣿⡟⠟⣿⣿⢏⣿⡟⠀⠀⠀⠀ + ⠀⠀⠀⠀⢀⣀⣤⣤⣴⢾⠁⢜⣿⣷⣦⠹⡉⠓⠁⠈⡡⣻⣷⣄⡀⠀⠀⠀ + ⠀⠀⠀⠀⠈⢪⣇⣼⣿⣎⣱⡦⠔⠉⠑⡆⠀⠁⣀⢥⣿⣿⣿⡿⠷⣄⠀⠀ + ⠀⡀⠀⠀⠀⠀⢹⣿⣿⣿⡏⠀⠀⠀⡠⠀⣴⢊⣡⢿⢟⣿⣾⣷⣀⠹⣦⠀ + ⡌⡄⠀⠀⠀⠀⠈⣻⣿⣱⡇⢀⠠⠀⠀⢸⣿⣿⣿⣽⣿⣝⢿⣖⢺⡠⣿⡄ + ⣷⡀⠀⠀⠀⠀⠐⣪⣿⣷⣌⢃⠀⠀⠀⠀⢹⣿⣾⣿⣿⣿⣿⣿⣿⣻⡿⣿ + ⠸⣧⡀⠀⠀⠠⢮⣿⣿⣶⡿⠁⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣧⣿ + ⠀⠈⠻⠶⣤⣤⠾⢿⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⡿⠃ + ⠀⠀⠀⠀⠀⠀⠀⣈⢻⣃⠀⠀⠀⠀⠀⠀⠀⣴⣾⣿⣿⣿⣿⣿⣉⡉⠀⠀ + ''; + }; in { config = lib.mkIf cfg.fastfetchConfig.enable { home = { - packages = [ pkgs.fastfetch ]; + packages = [ + pkgs.fastfetch + pkgs.imagemagick + ]; file.".config/fastfetch/config.jsonc" = { text = fastfetchConfig; }; - file.".config/fastfetch/asciiArt" = { - text = asciiArt; + file.".config/fastfetch/logo" = { + source = logo; + }; + }; + programs.zsh = { + shellAliases = { + fastfetch = "echo '' && fastfetch"; + neofetch = "fastfetch"; }; }; }; diff --git a/profiles/anya/fastfetchConfig.nix b/profiles/anya/fastfetchConfig.nix index 8d3437d..734421c 100644 --- a/profiles/anya/fastfetchConfig.nix +++ b/profiles/anya/fastfetchConfig.nix @@ -1,30 +1,24 @@ -{ config, lib, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.customHomeManagerModules; - asciiArt = '' - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢲⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠄⠂⢉⠤⠐⠋⠈⠡⡈⠉⠐⠠⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⢀⡀⢠⣤⠔⠁⢀⠀⠀⠀⠀⠀⠀⠀⠈⢢⠀⠀⠈⠱⡤⣤⠄⣀⠀⠀⠀⠀⠀ - ⠀⠀⠰⠁⠀⣰⣿⠃⠀⢠⠃⢸⠀⠀⠀⠀⠀⠀⠀⠀⠁⠀⠀⠀⠈⢞⣦⡀⠈⡇⠀⠀⠀ - ⠀⠀⠀⢇⣠⡿⠁⠀⢀⡃⠀⣈⠀⠀⠀⠀⢰⡀⠀⠀⠀⠀⢢⠰⠀⠀⢺⣧⢰⠀⠀⠀⠀ - ⠀⠀⠀⠈⣿⠁⡘⠀⡌⡇⠀⡿⠸⠀⠀⠀⠈⡕⡄⠀⠐⡀⠈⠀⢃⠀⠀⠾⠇⠀⠀⠀⠀ - ⠀⠀⠀⠀⠇⡇⠃⢠⠀⠶⡀⡇⢃⠡⡀⠀⠀⠡⠈⢂⡀⢁⠀⡁⠸⠀⡆⠘⡀⠀⠀⠀⠀ - ⠀⠀⠀⠸⠀⢸⠀⠘⡜⠀⣑⢴⣀⠑⠯⡂⠄⣀⣣⢀⣈⢺⡜⢣⠀⡆⡇⠀⢣⠀⠀⠀⠀ - ⠀⠀⠀⠇⠀⢸⠀⡗⣰⡿⡻⠿⡳⡅⠀⠀⠀⠀⠈⡵⠿⠿⡻⣷⡡⡇⡇⠀⢸⣇⠀⠀⠀ - ⠀⠀⢰⠀⠀⡆⡄⣧⡏⠸⢠⢲⢸⠁⠀⠀⠀⠀⠐⢙⢰⠂⢡⠘⣇⡇⠃⠀⠀⢹⡄⠀⠀ - ⠀⠀⠟⠀⠀⢰⢁⡇⠇⠰⣀⢁⡜⠀⠀⠀⠀⠀⠀⠘⣀⣁⠌⠀⠃⠰⠀⠀⠀⠈⠰⠀⠀ - ⠀⡘⠀⠀⠀⠀⢊⣤⠀⠀⠤⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠤⠄⠀⢸⠃⠀⠀⠀⠀⠀⠃⠀ - ⢠⠁⢀⠀⠀⠀⠈⢿⡀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⢀⠏⠀⠀⠀⠀⠀⠀⠸⠀ - ⠘⠸⠘⡀⠀⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⠁⠀⠃⠀⠀⠀⠀⢀⠎⠀⠀⠀⠀⠀⢠⠀⠀⡇ - ⠀⠇⢆⢃⠀⠀⠀⠀⠀⡏⢲⢤⢀⡀⠀⠀⠀⠀⠀⢀⣠⠄⡚⠀⠀⠀⠀⠀⠀⣾⠀⠀⠀ - ⢰⠈⢌⢎⢆⠀⠀⠀⠀⠁⣌⠆⡰⡁⠉⠉⠀⠉⠁⡱⡘⡼⠇⠀⠀⠀⠀⢀⢬⠃⢠⠀⡆ - ''; + logo = + let + image = pkgs.fetchurl { + url = "https://i.imgur.com/bZErzRg.jpeg"; + sha256 = "sha256-Q/kcNUUxjEs6mO1M/2GRB0jjfkMbs5xra9nHIdlMw+A="; + }; + in + "${image}"; in { config = lib.mkIf cfg.fastfetchConfig.enable { - home.file.".config/fastfetch/asciiArt" = { - text = lib.mkForce asciiArt; + home.file.".config/fastfetch/logo" = { + source = lib.mkForce logo; }; }; } diff --git a/profiles/nishinoya/fastfetchConfig.nix b/profiles/nishinoya/fastfetchConfig.nix index c5ca071..ef8f06e 100644 --- a/profiles/nishinoya/fastfetchConfig.nix +++ b/profiles/nishinoya/fastfetchConfig.nix @@ -1,34 +1,42 @@ -{ config, lib, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.customHomeManagerModules; - asciiArt = '' - ⠀⠀⠐⣄⠀⠀⢰⣿⣿⣿⣴⠏⠘⢠⢻⢯⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ - ⠀⠀⠀⠈⣶⣄⡈⣿⣿⣿⡟⠀⠆⠃⢸⣿⣿⣿⣿⡿⢟⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ - ⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣧⠘⣦⡄⢸⠻⠿⣛⣵⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ - ⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣾⡇⢧⣮⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ - ⠀⠀⠀⠀⢸⣿⣿⣿⡿⢻⢿⣿⠏⢀⡼⣿⠿⠿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ - ⠀⠀⠀⠀⢀⣿⡿⠁⠀⣾⣞⡏⠀⣾⠁⠀⠀⠀⠀⠐⠛⠉⠾⠿⠿⣿⣟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ - ⠀⠀⠀⠀⠈⣿⡁⠀⠀⣿⣼⠀⢰⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ - ⠀⠀⠀⠀⠀⡏⢹⡆⠀⣟⣹⢠⢸⠙⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ - ⠀⠀⠀⠀⠀⣧⣌⣿⡀⢸⣻⣾⡟⠀⠈⠀⠀⠀⣀⣀⣀⣀⡀⠀⠀⠀⢠⠀⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ - ⠀⠀⠀⠀⠀⣿⣿⣿⡇⠀⢻⡟⠁⣠⣴⠾⠟⠛⠋⠉⠉⠀⠀⠀⠀⠀⠘⠂⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ - ⠀⠀⠀⠀⠀⣿⣿⠻⡇⠀⠀⠧⠀⢀⣴⣶⣦⣤⣤⣤⣀⠀⠀⠀⠀⠀⠀⠄⣸⣿⣿⣿⣿⡿⠿⣿⣿⣿⣿⣿ - ⠀⠀⠀⠀⢸⠉⢇⣠⠇⠈⡆⠀⠀⢸⡿⠻⣿⠷⠆⠀⠨⠍⣷⢀⠄⠀⠀⠀⢹⣿⣿⠟⢁⣠⠄⣻⣿⣿⣿⣟ - ⠀⠀⠀⢀⣾⠀⡠⠎⠀⠀⠉⠀⠀⠈⠳⡀⠙⠃⠀⠀⣠⣾⡿⠊⠀⠀⠀⢀⣿⡿⢁⣴⡟⠁⢀⣿⣿⠿⣿⠋ - ⠀⠀⡰⠋⢹⠀⢇⠀⠀⠀⠀⠀⠀⠀⠀⠈⠑⠒⠒⠋⠉⠁⠀⠀⠀⠀⠀⣼⡟⠁⢈⣿⡅⢀⣼⡿⡟⠧⣿⠀ - ⠀⡼⠁⠀⠸⡇⠈⣷⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⠟⢀⡠⠿⠁⡠⠚⣿⣿⠇⠀⣿⠀ - ⢸⡇⠀⠀⠀⢻⡄⢤⡉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠠⠋⣀⡴⠋⠀⢰⣿⡿⠀⢠⡏⠀ - ⠀⢿⡄⠀⠀⠀⠳⡀⠙⣶⣦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠴⠟⠉⣹⠁⠀⣠⣿⣿⠃⠀⣸⠁⠀ - ⠀⠘⣿⣄⠀⠀⠀⠹⡀⠓⠦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⠞⠁⠀⠀⠰⠃⢀⣴⣿⣿⡏⠀⢠⡟⠀⠀ - ⠀⠀⢱⠈⢣⡀⠀⠀⢣⡀⠀⠀⠀⢀⣀⣀⣠⣤⣴⣶⠿⠟⠋⠁⠀⠀⠀⠀⣀⣴⣿⣿⣿⡟⢠⢀⣿⠁⠀⠀ - ⠀⠀⠈⣇⠀⠹⣦⡀⠀⠈⠉⠉⠙⢿⡟⡽⠃⢹⣿⣟⠦⢄⠀⠀⢀⣠⣴⣾⠿⠻⢿⣿⡟⠀⠀⣼⠇⠀⠀⠀ - ⠀⠀⠘⡍⢧⠀⠙⢿⣦⣀⠀⠀⢀⡞⣿⣄⠀⠀⠙⠿⣿⣦⣤⣶⡿⠟⠉⠀⠀⠀⠘⡎⢳⠐⠚⠛⠀⠀⠀⠀ - ''; + logo = pkgs.writeTextFile { + name = "logo"; + text = '' + ⠀⠀⠐⣄⠀⠀⢰⣿⣿⣿⣴⠏⠘⢠⢻⢯⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ + ⠀⠀⠀⠈⣶⣄⡈⣿⣿⣿⡟⠀⠆⠃⢸⣿⣿⣿⣿⡿⢟⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ + ⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣧⠘⣦⡄⢸⠻⠿⣛⣵⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ + ⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣾⡇⢧⣮⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ + ⠀⠀⠀⠀⢸⣿⣿⣿⡿⢻⢿⣿⠏⢀⡼⣿⠿⠿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ + ⠀⠀⠀⠀⢀⣿⡿⠁⠀⣾⣞⡏⠀⣾⠁⠀⠀⠀⠀⠐⠛⠉⠾⠿⠿⣿⣟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ + ⠀⠀⠀⠀⠈⣿⡁⠀⠀⣿⣼⠀⢰⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ + ⠀⠀⠀⠀⠀⡏⢹⡆⠀⣟⣹⢠⢸⠙⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ + ⠀⠀⠀⠀⠀⣧⣌⣿⡀⢸⣻⣾⡟⠀⠈⠀⠀⠀⣀⣀⣀⣀⡀⠀⠀⠀⢠⠀⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ + ⠀⠀⠀⠀⠀⣿⣿⣿⡇⠀⢻⡟⠁⣠⣴⠾⠟⠛⠋⠉⠉⠀⠀⠀⠀⠀⠘⠂⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ + ⠀⠀⠀⠀⠀⣿⣿⠻⡇⠀⠀⠧⠀⢀⣴⣶⣦⣤⣤⣤⣀⠀⠀⠀⠀⠀⠀⠄⣸⣿⣿⣿⣿⡿⠿⣿⣿⣿⣿⣿ + ⠀⠀⠀⠀⢸⠉⢇⣠⠇⠈⡆⠀⠀⢸⡿⠻⣿⠷⠆⠀⠨⠍⣷⢀⠄⠀⠀⠀⢹⣿⣿⠟⢁⣠⠄⣻⣿⣿⣿⣟ + ⠀⠀⠀⢀⣾⠀⡠⠎⠀⠀⠉⠀⠀⠈⠳⡀⠙⠃⠀⠀⣠⣾⡿⠊⠀⠀⠀⢀⣿⡿⢁⣴⡟⠁⢀⣿⣿⠿⣿⠋ + ⠀⠀⡰⠋⢹⠀⢇⠀⠀⠀⠀⠀⠀⠀⠀⠈⠑⠒⠒⠋⠉⠁⠀⠀⠀⠀⠀⣼⡟⠁⢈⣿⡅⢀⣼⡿⡟⠧⣿⠀ + ⠀⡼⠁⠀⠸⡇⠈⣷⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⠟⢀⡠⠿⠁⡠⠚⣿⣿⠇⠀⣿⠀ + ⢸⡇⠀⠀⠀⢻⡄⢤⡉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠠⠋⣀⡴⠋⠀⢰⣿⡿⠀⢠⡏⠀ + ⠀⢿⡄⠀⠀⠀⠳⡀⠙⣶⣦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠴⠟⠉⣹⠁⠀⣠⣿⣿⠃⠀⣸⠁⠀ + ⠀⠘⣿⣄⠀⠀⠀⠹⡀⠓⠦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⠞⠁⠀⠀⠰⠃⢀⣴⣿⣿⡏⠀⢠⡟⠀⠀ + ⠀⠀⢱⠈⢣⡀⠀⠀⢣⡀⠀⠀⠀⢀⣀⣀⣠⣤⣴⣶⠿⠟⠋⠁⠀⠀⠀⠀⣀⣴⣿⣿⣿⡟⢠⢀⣿⠁⠀⠀ + ⠀⠀⠈⣇⠀⠹⣦⡀⠀⠈⠉⠉⠙⢿⡟⡽⠃⢹⣿⣟⠦⢄⠀⠀⢀⣠⣴⣾⠿⠻⢿⣿⡟⠀⠀⣼⠇⠀⠀⠀ + ⠀⠀⠘⡍⢧⠀⠙⢿⣦⣀⠀⠀⢀⡞⣿⣄⠀⠀⠙⠿⣿⣦⣤⣶⡿⠟⠉⠀⠀⠀⠘⡎⢳⠐⠚⠛⠀⠀⠀⠀ + ''; + }; in { config = lib.mkIf cfg.fastfetchConfig.enable { - home.file.".config/fastfetch/asciiArt" = { - text = lib.mkForce asciiArt; + home.file.".config/fastfetch/logo" = { + source = lib.mkForce logo; }; }; } diff --git a/profiles/totoro/fastfetchConfig.nix b/profiles/totoro/fastfetchConfig.nix index 5db4a11..e9a281e 100644 --- a/profiles/totoro/fastfetchConfig.nix +++ b/profiles/totoro/fastfetchConfig.nix @@ -1,29 +1,26 @@ -{ config, lib, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.customHomeManagerModules; - asciiArt = '' - - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⡄⠀⠀⠀⠀⠀⠀⠀⣠⣄⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⣿⡇⠀⠀⠀⠀⠀⠀⢰⣿⣿⡄⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⣿⣿⣿⡇⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢘⣿⣿⣿⣯⣤⣤⣤⣀⣀⣸⣿⣿⣿⡇⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⡿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⡏⢠⡦⠈⣿⣿⣿⣿⣿⣿⠟⠛⢻⣷⡄⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⣦⣤⣾⣿⣿⣿⣿⣿⣿⠀⠿⢀⣿⣷⠄⠀⠀⠀ - ⢠⣄⠀⠀⠀⣼⣿⡆⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣿⡇⠀⠀⠀ - ⢸⣿⣷⣄⢀⣿⣿⣿⠀⠀⠀⢀⣿⣿⣿⠿⠋⠉⠁⠀⠀⠈⠉⠉⠻⢿⣿⣿⣿⣿⣿⣷⠀⠀⠀ - ⠀⣿⣿⠿⣿⣿⡿⣛⢷⠀⠀⢸⣿⣿⠏⢀⣤⣄⠀⣠⣤⡄⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣦⣄⠀ - ⠀⣿⣇⣀⣽⣿⣷⣤⣾⣧⠀⠘⣿⠏⠀⠛⠋⠙⠀⠛⠙⠛⠀⠾⠿⣷⢸⣿⣿⣿⣿⣿⣿⣿⡇ - ⢠⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆⠀⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⡿⣿⣿⣿⣿⣿⡇ - ⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⠀⠐⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⡿⠁ - ⠀⢻⣿⣿⣿⣿⣿⣿⣿⡟⠀⠀⠀⠈⠢⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⣿⡿⠋⠀⠀ - ⠀⠀⠉⠛⠛⠛⠛⠛⠛⠁⠀⠀⠀⠀⠀⠘⠻⢲⠦⠤⠤⠀⠀⠀⠀⣤⢴⡿⠟⠁⠀⠀⠀⠀⠀ - ''; + logo = + let + image = pkgs.fetchurl { + url = "https://i.imgur.com/xCusJ6d.jpeg"; + sha256 = "sha256-VSOsCTiZP9IEMN69qmhxs4obRVNxpbLf0zUOzz2vjoQ="; + }; + in + "${image}"; in { config = lib.mkIf cfg.fastfetchConfig.enable { - home.file.".config/fastfetch/asciiArt" = { - text = lib.mkForce asciiArt; + home = { + file.".config/fastfetch/logo" = { + source = lib.mkForce logo; + }; }; }; }