Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ jobs:
nix flake update --commit-lock-file --accept-flake-config
- name: Update cargo.lock
run: |
devenv shell -- cargo update
nix run --accept-flake-config .#packages.x86_64-linux.devenv shell -- cargo update
git add Cargo.lock Cargo.toml
git commit -m "build:update Cargo.lock & Cargo.toml"
- name: Push changes to remote
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
201 changes: 200 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
devenv.url = "github:cachix/devenv/v1.11.1";
};

outputs =
Expand All @@ -16,6 +17,7 @@
nixpkgs,
flake-utils,
rust-overlay,
devenv,
}:
flake-utils.lib.eachDefaultSystem (
system:
Expand All @@ -40,24 +42,28 @@
packages = {
inherit pullix;
default = pullix;
devenv = devenv.packages."${system}".default;
};

formatter = pkgs.alejandra;
}
)
// {
# NixOS module for running pullix as a service
nixosModules.default = import ./nix/nixos-module.nix { inherit self; };
};

nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org?priority=31"
"https://scarisey-public.cachix.org?priority=32"
"https://devenv.cachix.org?priority=33"
"https://cachix.cachix.org?priority=34"
];
extra-trusted-public-keys = [
"scarisey-public.cachix.org-1:kabqlCM0Wwd3iOh+C62WQg7vUO7vX3JbKKraSmxr2n8="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
"cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM="
];
};
}