feat(fmt): Add a formatter and format the flake
This commit is contained in:
parent
11d39e91b4
commit
b1cbafba2c
1 changed files with 82 additions and 52 deletions
134
flake.nix
134
flake.nix
|
@ -11,11 +11,29 @@
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-utils,
|
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 = {
|
homeManagerModules = {
|
||||||
default = { config, lib, pkgs, ... }: {
|
default = {
|
||||||
home.packages = with pkgs;[
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
nix-zsh-completions
|
nix-zsh-completions
|
||||||
|
|
||||||
asciinema # Terminal recording
|
asciinema # Terminal recording
|
||||||
|
@ -27,15 +45,15 @@
|
||||||
bat
|
bat
|
||||||
eza
|
eza
|
||||||
trash-cli
|
trash-cli
|
||||||
fzf # enhancd
|
fzf # enhancd
|
||||||
fd # enhancd
|
fd # enhancd
|
||||||
# rofi # for fd
|
# rofi # for fd
|
||||||
gnutar # ex
|
gnutar # ex
|
||||||
bzip3 # ex
|
bzip3 # ex
|
||||||
unzip # ex
|
unzip # ex
|
||||||
p7zip # ex
|
p7zip # ex
|
||||||
unrar # ex
|
unrar # ex
|
||||||
gzip # ex
|
gzip # ex
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -59,20 +77,32 @@
|
||||||
zplug = {
|
zplug = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
{ 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 = "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-syntax-highlighting"; }
|
||||||
{ name = "zsh-users/zsh-completions"; } # Adds some missing completions to zsh
|
{name = "zsh-users/zsh-completions";} # Adds some missing completions to zsh
|
||||||
{ name = "zsh-users/zsh-autosuggestions"; } # Simple plugin installation
|
{name = "zsh-users/zsh-autosuggestions";} # Simple plugin installation
|
||||||
{ name = "MichaelAquilina/zsh-you-should-use"; } # Did you forget to use an alias?
|
{name = "MichaelAquilina/zsh-you-should-use";} # Did you forget to use an alias?
|
||||||
{ name = "davidde/git"; } # Aliases for git
|
{name = "davidde/git";} # Aliases for git
|
||||||
{ name = "babarot/enhancd"; tags = [ "use:init.sh" ]; } # Includes simmilar functionality to zsh-z
|
{
|
||||||
{ name = "supercrabtree/k"; } # Directory listings for Zsh with git features.
|
name = "babarot/enhancd";
|
||||||
{ name = "plugins/command-not-found"; tags = [ "from:oh-my-zsh" ]; }
|
tags = ["use:init.sh"];
|
||||||
{ name = "gko/ssh-connect"; tags = [ "use:ssh-connect.sh" ]; } # List of most used ssh connections
|
} # Includes simmilar functionality to zsh-z
|
||||||
{ name = "agkozak/zsh-z"; } # Jump arount your filesystem with ease
|
{name = "supercrabtree/k";} # Directory listings for Zsh with git features.
|
||||||
{ name = "sineto/web-search"; }
|
{
|
||||||
{ name = "zsh-users/zaw"; } # Desctiptions for command outputs (afaik)zplug "plugins/git", from:oh-my-zsh
|
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
|
||||||
# { name = "plugins/dirhistory"; tags = [ "from:oh-my-zsh" ]; }
|
# { name = "plugins/dirhistory"; tags = [ "from:oh-my-zsh" ]; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -176,43 +206,43 @@
|
||||||
cat = "${pkgs.bat}/bin/bat -p";
|
cat = "${pkgs.bat}/bin/bat -p";
|
||||||
# update = "sudo nixos-rebuild switch";
|
# update = "sudo nixos-rebuild switch";
|
||||||
|
|
||||||
ls="lsd";
|
ls = "lsd";
|
||||||
# ls, the common ones I use a lot shortened for rapid fire usage
|
# ls, the common ones I use a lot shortened for rapid fire usage
|
||||||
l="ls -lFh"; #size,show type,human readable
|
l = "ls -lFh"; #size,show type,human readable
|
||||||
la="ls -lAFh"; #long list,show almost all,show type,human readable
|
la = "ls -lAFh"; #long list,show almost all,show type,human readable
|
||||||
lr="ls -tRFh"; #sorted by date,recursive,show type,human readable
|
lr = "ls -tRFh"; #sorted by date,recursive,show type,human readable
|
||||||
lt="ls -ltFh"; #long list,sorted by date,show type,human readable
|
lt = "ls -ltFh"; #long list,sorted by date,show type,human readable
|
||||||
ll="ls -l"; #long list
|
ll = "ls -l"; #long list
|
||||||
ldot="ls -ld .*";
|
ldot = "ls -ld .*";
|
||||||
lS="ls -1FSsh";
|
lS = "ls -1FSsh";
|
||||||
lart="ls -1Fcart";
|
lart = "ls -1Fcart";
|
||||||
lrt="ls -1Fcrt";
|
lrt = "ls -1Fcrt";
|
||||||
|
|
||||||
grep="grep --color";
|
grep = "grep --color";
|
||||||
sgrep="grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} ";
|
sgrep = "grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} ";
|
||||||
|
|
||||||
t="tail -f";
|
t = "tail -f";
|
||||||
|
|
||||||
dud="du -d 1 -h";
|
dud = "du -d 1 -h";
|
||||||
duf="du -sh *";
|
duf = "du -sh *";
|
||||||
# fd="find . -type d -name";
|
# fd="find . -type d -name";
|
||||||
ff="find . -type f -name";
|
ff = "find . -type f -name";
|
||||||
|
|
||||||
h="history";
|
h = "history";
|
||||||
hgrep="fc -El 0 | grep";
|
hgrep = "fc -El 0 | grep";
|
||||||
help="man";
|
help = "man";
|
||||||
p="ps -f";
|
p = "ps -f";
|
||||||
sortnr="sort -n -r";
|
sortnr = "sort -n -r";
|
||||||
unexport="unset";
|
unexport = "unset";
|
||||||
|
|
||||||
# Use trash instead of rm if available
|
# Use trash instead of rm if available
|
||||||
rm="trash";
|
rm = "trash";
|
||||||
cp="cp -i";
|
cp = "cp -i";
|
||||||
mv="mv -i";
|
mv = "mv -i";
|
||||||
|
|
||||||
cls="clear";
|
cls = "clear";
|
||||||
|
|
||||||
sshc="ssh-connect";
|
sshc = "ssh-connect";
|
||||||
};
|
};
|
||||||
|
|
||||||
history = {
|
history = {
|
||||||
|
@ -224,7 +254,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
# ".zprofile".source = ./zprofile;
|
# ".zprofile".source = ./zprofile;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue