diff --git a/config/logo.png b/config/logo.png new file mode 100644 index 0000000..6a5fd52 Binary files /dev/null and b/config/logo.png differ diff --git a/kogami/home.nix b/kogami/home.nix index 6ff97e6..26ae2d9 100644 --- a/kogami/home.nix +++ b/kogami/home.nix @@ -35,6 +35,7 @@ # Configured programs to enable program = { + fastfetch.enable = true; kitty.enable = true; tmux.enable = true; zoxide.enable = true; diff --git a/nixos/home/packages/packages.nix b/nixos/home/packages/packages.nix index f8f33ce..6be9116 100644 --- a/nixos/home/packages/packages.nix +++ b/nixos/home/packages/packages.nix @@ -24,6 +24,7 @@ ./tools/oh-my-posh.nix ./tools/shell.nix ./tools/kitty.nix + ./tools/fastfetch.nix ./tools/tmux.nix ./tools/zoxide.nix ./tools/ranger.nix @@ -58,6 +59,7 @@ sh.oh-my-posh.enable = lib.mkDefault true; program = { + fastfetch.enable = lib.mkDefault false; kitty.enable = if userSettings.terminal == "kitty" then lib.mkDefault true diff --git a/nixos/home/packages/tools/fastfetch.nix b/nixos/home/packages/tools/fastfetch.nix new file mode 100644 index 0000000..1649781 --- /dev/null +++ b/nixos/home/packages/tools/fastfetch.nix @@ -0,0 +1,47 @@ +{ + lib, + config, + ... +}: { + options = { + program.fastfetch.enable = lib.mkEnableOption "fastfetch"; + }; + + config = lib.mkIf config.program.fastfetch.enable { + home.file = { + ".config/fastfetch/logo.png".source = ../../../../config/logo.png; + }; + + programs.fastfetch = { + enable = true; + settings = { + "$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json"; + "logo" = { + "source" = "/home/shinya/.config/fastfetch/logo.png"; + "width" = 30; + "height" = 18; + }; + "modules" = [ + "break" + "title" + "separator" + "os" + "host" + "kernel" + "uptime" + "packages" + "shell" + "de" + "wm" + "icons" + "font" + "cursor" + "terminalfont" + "cpu" + "gpu" + "disk" + ]; + }; + }; + }; +} diff --git a/nixos/home/packages/tools/shell.nix b/nixos/home/packages/tools/shell.nix index f8b7749..7df00e7 100644 --- a/nixos/home/packages/tools/shell.nix +++ b/nixos/home/packages/tools/shell.nix @@ -9,6 +9,7 @@ ll = "${pkgs.eza}/bin/eza -alh --icons"; l = "${pkgs.eza}/bin/eza -lh --icons=auto"; tree = "${pkgs.eza}/bin/eza --tree --icons"; + neofetch = "${pkgs.fastfetch}/bin/fastfetch"; open = "rifle"; ip = "ip -c"; s = "kitten ssh"; diff --git a/tsunemori/home.nix b/tsunemori/home.nix index 129b9c3..92c1651 100644 --- a/tsunemori/home.nix +++ b/tsunemori/home.nix @@ -19,6 +19,7 @@ sh.oh-my-posh.enable = true; program = { + fastfetch.enable = true; tmux.enable = true; zoxide.enable = true; git.enable = true;