feat(checks): Fully rework lints
This is currently copied from my dotfiles. Should probably consider using flake-parts to DRY this out.
This commit is contained in:
parent
a90ba627bd
commit
79eb8f9424
4 changed files with 221 additions and 820 deletions
48
flake.nix
48
flake.nix
|
|
@ -3,19 +3,44 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05-small";
|
||||
|
||||
## Nix/OS utilities
|
||||
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
deploy-rs.url = "github:serokell/deploy-rs";
|
||||
|
||||
deploy-rs = {
|
||||
url = "github:serokell/deploy-rs";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
tlaternet-webserver = {
|
||||
url = "git+https://gitea.tlater.net/tlaternet/tlaternet.git";
|
||||
|
||||
## Programs
|
||||
|
||||
flint = {
|
||||
url = "github:NotAShelf/flint";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
## Services
|
||||
|
||||
tlaternet-webserver = {
|
||||
url = "git+https://gitea.tlater.net/tlaternet/tlaternet.git";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
dream2nix.inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
purescript-overlay.inputs.flake-compat.follows = "deploy-rs/flake-compat";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
foundryvtt = {
|
||||
url = "github:reckenrode/nix-foundryvtt";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -23,7 +48,20 @@
|
|||
|
||||
sonnenshift = {
|
||||
url = "git+ssh://git@github.com/sonnenshift/battery-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
|
||||
crate2nix.inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
flake-compat.follows = "deploy-rs/flake-compat";
|
||||
cachix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
pre-commit-hooks.inputs.gitignore.follows = "sonnenshift/crate2nix/cachix/git-hooks/gitignore";
|
||||
|
||||
# Yes, they do this insanity:
|
||||
# https://github.com/nix-community/crate2nix/issues/371
|
||||
crate2nix_stable.follows = "sonnenshift/crate2nix";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -90,7 +128,7 @@
|
|||
#########
|
||||
# Tests #
|
||||
#########
|
||||
checks.${system} = import ./checks (inputs // { inherit system; });
|
||||
checks = import ./checks { flake-inputs = inputs; };
|
||||
|
||||
###########################
|
||||
# Garbage collection root #
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue