Do not install rust on neelix.
This commit is contained in:
parent
8946868fd6
commit
55654fafb1
@ -47,6 +47,7 @@
|
|||||||
me.lvfs.enable = true;
|
me.lvfs.enable = true;
|
||||||
me.media.enable = true;
|
me.media.enable = true;
|
||||||
me.python.enable = true;
|
me.python.enable = true;
|
||||||
me.sway.enable = true;
|
|
||||||
me.qemu.enable = true;
|
me.qemu.enable = true;
|
||||||
|
me.rust.enable = true;
|
||||||
|
me.sway.enable = true;
|
||||||
}
|
}
|
||||||
|
@ -8,31 +8,46 @@
|
|||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
options.me = {
|
||||||
rustup
|
rust.enable = lib.mkOption {
|
||||||
lldb # for lldb-vscode
|
type = lib.types.bool;
|
||||||
musl # for building static binaries
|
default = false;
|
||||||
rust-analyzer
|
example = true;
|
||||||
cargo-semver-checks
|
description = "Whether we want to install rust.";
|
||||||
# ? cargo-bloat
|
|
||||||
# ? cargo-outdated
|
|
||||||
# ? cargo-public-api
|
|
||||||
];
|
|
||||||
|
|
||||||
home-manager.users.talexander =
|
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
home.file = {
|
|
||||||
".cargo/config.toml" = {
|
|
||||||
source = ./files/cargo_config.toml;
|
|
||||||
};
|
|
||||||
# # TODO: Figure out what to do with credentials.
|
|
||||||
# ".cargo/credentials.toml" = {
|
|
||||||
# source = ./files/cargo_credentials.toml;
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.me.rust.enable (
|
||||||
|
lib.mkMerge [
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
rustup
|
||||||
|
lldb # for lldb-vscode
|
||||||
|
musl # for building static binaries
|
||||||
|
rust-analyzer
|
||||||
|
cargo-semver-checks
|
||||||
|
# ? cargo-bloat
|
||||||
|
# ? cargo-outdated
|
||||||
|
# ? cargo-public-api
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager.users.talexander =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.file = {
|
||||||
|
".cargo/config.toml" = {
|
||||||
|
source = ./files/cargo_config.toml;
|
||||||
|
};
|
||||||
|
# # TODO: Figure out what to do with credentials.
|
||||||
|
# ".cargo/credentials.toml" = {
|
||||||
|
# source = ./files/cargo_credentials.toml;
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: Install clippy, cranelift, rust-src
|
# TODO: Install clippy, cranelift, rust-src
|
||||||
|
Loading…
x
Reference in New Issue
Block a user