Better rust and latex configuration
This commit is contained in:
parent
f93a17a74f
commit
1011735683
4 changed files with 62 additions and 5 deletions
26
flake.lock
generated
26
flake.lock
generated
|
|
@ -316,7 +316,31 @@
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-u": "nixpkgs-u",
|
"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": {
|
"utils": {
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||||
nix-rice = { url = "github:bertof/nix-rice"; inputs = { nixpkgs.follows = "nixpkgs"; flake-utils.follows = "flake-utils"; }; };
|
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"; }; };
|
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 =
|
outputs =
|
||||||
|
|
@ -27,6 +28,7 @@
|
||||||
, nixos-hardware
|
, nixos-hardware
|
||||||
, nix-rice
|
, nix-rice
|
||||||
, pre-commit-hooks
|
, pre-commit-hooks
|
||||||
|
, tex2nix
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -43,6 +45,7 @@
|
||||||
(self: _: {
|
(self: _: {
|
||||||
stable = import nixpkgs { inherit config overlays; inherit (self) system; };
|
stable = import nixpkgs { inherit config overlays; inherit (self) system; };
|
||||||
unstable = import nixpkgs-u { inherit config overlays; inherit (self) system; };
|
unstable = import nixpkgs-u { inherit config overlays; inherit (self) system; };
|
||||||
|
inherit (tex2nix.packages.${self.system}) tex2nix;
|
||||||
})
|
})
|
||||||
|
|
||||||
# Nix rice
|
# Nix rice
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, config, lib, ... }: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
bibtool
|
bibtool
|
||||||
# tex2nix
|
tex2nix
|
||||||
texlab
|
|
||||||
texlive.combined.scheme-medium
|
texlive.combined.scheme-medium
|
||||||
|
] ++ lib.optionals config.programs.helix.enable [
|
||||||
|
texlab
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,32 @@
|
||||||
{ pkgs, lib, config, ... }: {
|
{ 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 ]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue