[WIP] Stuff

This commit is contained in:
Andrea Ciceri 2022-10-11 20:46:44 +02:00
parent f62f6ff7f4
commit 859896c9b2
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
6 changed files with 43 additions and 8 deletions

View file

@ -16,7 +16,21 @@
defaultEditor = true;
};
home.packages = with pkgs; [
home.packages = with pkgs; let
path = pkgs.lib.makeBinPath (with pkgs; [
nix
nixpkgs-fmt
git
]);
nixFormat = writeScriptBin "nixFormat" ''
export PATH=${pkgs.lib.escapeShellArg path}
if [[ ! "$(nix fmt $@)" ]]
then
nixpkgs-fmt $@
fi
'';
in [
binutils
(ripgrep.override {withPCRE2 = true;})
gnutls
@ -24,6 +38,8 @@
imagemagick
sqlite
maim
nixFormat
jq
xclip
];
}