Skip to content

Commit

Permalink
feat: use atomiutils
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Jan 29, 2025
1 parent 44bbdc5 commit cc963c8
Show file tree
Hide file tree
Showing 8 changed files with 443 additions and 2,946 deletions.
3,340 changes: 435 additions & 2,905 deletions flake.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# registry
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-2411.url = "nixpkgs/nixos-24.11";
atomipkgs.url = "github:AtomiCloud/nix-registry/v1.0.0";
atomipkgs.url = "github:AtomiCloud/nix-registry/v1";

};
outputs =
Expand Down
7 changes: 1 addition & 6 deletions nix/env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
with packages;
{
system = [
coreutils
findutils
gnugrep
gnused
jq
yq
atomiutils
];

dev = [
Expand Down
10 changes: 1 addition & 9 deletions nix/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ let
with atomi;
{
inherit
atomiutils
pls;
}
);
Expand All @@ -16,16 +17,7 @@ let
nix-2411 = (
with pkgs-2411;
{
yq = yq-go;

inherit
coreutils
findutils
gnugrep
gnused
jq


git

infisical
Expand Down
2 changes: 1 addition & 1 deletion nix/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pre-commit-lib.run {
a-enforce-exec = {
enable = true;
name = "Enforce Shell Script executable";
entry = "${packages.coreutils}/bin/chmod +x";
entry = "${packages.atomiutils}/bin/chmod +x";
files = ".*sh$";
language = "system";
pass_filenames = true;
Expand Down
10 changes: 1 addition & 9 deletions template/nix/env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,8 @@
with packages;
{
system = [
coreutils
findutils
gnugrep
gnused
bash
jq
yq
curl
atomiutils
xmlstarlet
bc
];

dev = [
Expand Down
16 changes: 2 additions & 14 deletions template/nix/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ let
with atomi;
{
inherit
atomiutils
sg
pls;
}
Expand All @@ -17,28 +18,15 @@ let
with pkgs-2411;
{

yq = yq-go;
dotnet = dotnet-sdk_9;
jdk = zulu17;

inherit

# standard
coreutils
findutils
gnugrep
gnused
gcc
jq
bash
bc
xmlstarlet

git
curl
infisical

xmlstarlet

treefmt
gitlint
shellcheck
Expand Down
2 changes: 1 addition & 1 deletion template/nix/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pre-commit-lib.run {
a-enforce-exec = {
enable = true;
name = "Enforce Shell Script executable";
entry = "${packages.coreutils}/bin/chmod +x";
entry = "${packages.atomiutils}/bin/chmod +x";
files = ".*sh$";
language = "system";
pass_filenames = true;
Expand Down

0 comments on commit cc963c8

Please sign in to comment.