feat(fmt): Add a formatter and format the flake

This commit is contained in:
Jiří Štefka 2024-10-24 00:27:43 +02:00
parent 11d39e91b4
commit b1cbafba2c
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE

View file

@ -11,10 +11,28 @@
nixpkgs,
flake-utils,
...
} @ inputs:
{
} @ inputs: let
inherit (self) outputs;
# Supported systems for your flake packages, shell, etc.
systems = [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
# This is a function that generates an attribute by calling a function you
# pass to it, with each system as an argument
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
homeManagerModules = {
default = { config, lib, pkgs, ... }: {
default = {
config,
lib,
pkgs,
...
}: {
home.packages = with pkgs; [
nix-zsh-completions
@ -59,17 +77,29 @@
zplug = {
enable = true;
plugins = [
{ name = "romkatv/powerlevel10k"; tags = [ "as:theme" "depth:1" ]; } # Installations with additional options. For the list of options, please refer to Zplug README.
{
name = "romkatv/powerlevel10k";
tags = ["as:theme" "depth:1"];
} # Installations with additional options. For the list of options, please refer to Zplug README.
{name = "z-shell/F-Sy-H";} # Feature-rich Syntax Highlighting for Zsh
# { name = "zsh-users/zsh-syntax-highlighting"; }
{name = "zsh-users/zsh-completions";} # Adds some missing completions to zsh
{name = "zsh-users/zsh-autosuggestions";} # Simple plugin installation
{name = "MichaelAquilina/zsh-you-should-use";} # Did you forget to use an alias?
{name = "davidde/git";} # Aliases for git
{ name = "babarot/enhancd"; tags = [ "use:init.sh" ]; } # Includes simmilar functionality to zsh-z
{
name = "babarot/enhancd";
tags = ["use:init.sh"];
} # Includes simmilar functionality to zsh-z
{name = "supercrabtree/k";} # Directory listings for Zsh with git features.
{ name = "plugins/command-not-found"; tags = [ "from:oh-my-zsh" ]; }
{ name = "gko/ssh-connect"; tags = [ "use:ssh-connect.sh" ]; } # List of most used ssh connections
{
name = "plugins/command-not-found";
tags = ["from:oh-my-zsh"];
}
{
name = "gko/ssh-connect";
tags = ["use:ssh-connect.sh"];
} # List of most used ssh connections
{name = "agkozak/zsh-z";} # Jump arount your filesystem with ease
{name = "sineto/web-search";}
{name = "zsh-users/zaw";} # Desctiptions for command outputs (afaik)zplug "plugins/git", from:oh-my-zsh