fix lint
Some checks failed
Lint / lint (push) Failing after 1m13s
Plex Update / update (push) Successful in 1m33s

This commit is contained in:
Vivian 2023-11-10 23:41:30 +01:00
parent ec0c2f466a
commit 68cb70ee4d
3 changed files with 114 additions and 113 deletions

View file

@ -4,18 +4,20 @@ let cfg = config.programs.v.rust;
in {
options.programs.v.rust = { enable = mkEnableOption "rust"; };
config = mkIf cfg.enable {
home.packages = with pkgs; [ rustup ];
home = {
packages = with pkgs; [ rustup ];
home.file = {
".cargo/config.toml".text = ''
[registries.crates-io]
protocol = "sparse"
file = {
".cargo/config.toml".text = ''
[registries.crates-io]
protocol = "sparse"
[build]
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
'';
[build]
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
'';
};
sessionPath = [ "$HOME/.cargo/bin" ];
};
home.sessionPath = [ "$HOME/.cargo/bin" ];
};
}