Better rust and latex configuration

This commit is contained in:
Filippo Berto 2022-12-24 15:19:02 +01:00
parent f93a17a74f
commit 1011735683
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
4 changed files with 62 additions and 5 deletions

26
flake.lock generated
View file

@ -316,7 +316,31 @@
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nixpkgs-u": "nixpkgs-u",
"pre-commit-hooks": "pre-commit-hooks_2"
"pre-commit-hooks": "pre-commit-hooks_2",
"tex2nix": "tex2nix"
}
},
"tex2nix": {
"inputs": {
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1671620613,
"narHash": "sha256-QJaDy+y77/XiSMGxcV029gnDRgjakUfr+PrZNJDtQC8=",
"owner": "Mic92",
"repo": "tex2nix",
"rev": "9ec1c0cd8eecf938f4954c53755c4564679486d9",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "tex2nix",
"type": "github"
}
},
"utils": {

View file

@ -13,6 +13,7 @@
nixos-hardware.url = "github:NixOS/nixos-hardware";
nix-rice = { url = "github:bertof/nix-rice"; inputs = { nixpkgs.follows = "nixpkgs"; flake-utils.follows = "flake-utils"; }; };
pre-commit-hooks = { url = "github:cachix/pre-commit-hooks.nix"; inputs = { nixpkgs.follows = "nixpkgs"; flake-utils.follows = "flake-utils"; }; };
tex2nix = { url = "github:Mic92/tex2nix"; inputs = { nixpkgs.follows = "nixpkgs"; flake-utils.follows = "flake-utils"; }; };
};
outputs =
@ -27,6 +28,7 @@
, nixos-hardware
, nix-rice
, pre-commit-hooks
, tex2nix
}:
let
config = {
@ -43,6 +45,7 @@
(self: _: {
stable = import nixpkgs { inherit config overlays; inherit (self) system; };
unstable = import nixpkgs-u { inherit config overlays; inherit (self) system; };
inherit (tex2nix.packages.${self.system}) tex2nix;
})
# Nix rice

View file

@ -1,8 +1,9 @@
{ pkgs, ... }: {
{ pkgs, config, lib, ... }: {
home.packages = with pkgs; [
bibtool
# tex2nix
texlab
tex2nix
texlive.combined.scheme-medium
] ++ lib.optionals config.programs.helix.enable [
texlab
];
}

View file

@ -1,3 +1,32 @@
{ pkgs, lib, config, ... }: {
home.packages = with pkgs; [ bacon cargo clippy rustfmt ] ++ (lib.optionals config.programs.helix.enable [ rust-analyzer ]);
home.packages = with pkgs; [
bacon
cargo
# cargo-about
cargo-audit
# cargo-auditable
cargo-criterion
cargo-deadlinks
# cargo-deny
# cargo-deps
cargo-expand
# cargo-feature
cargo-flamegraph
cargo-fuzz
cargo-hack
cargo-hakari
cargo-inspect
cargo-modules
cargo-outdated
cargo-profiler
cargo-release
cargo-show-asm
cargo-spellcheck
cargo-tarpaulin
cargo-udeps
cargo-watch
cargo-workspaces
clippy
rustfmt
] ++ (lib.optionals config.programs.helix.enable [ rust-analyzer ]);
}