Do not install rust on neelix.

This commit is contained in:
Tom Alexander 2025-01-23 21:21:37 -05:00
parent 8946868fd6
commit 55654fafb1
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 40 additions and 24 deletions

View File

@ -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;
} }

View File

@ -8,6 +8,18 @@
{ {
imports = [ ]; imports = [ ];
options.me = {
rust.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install rust.";
};
};
config = lib.mkIf config.me.rust.enable (
lib.mkMerge [
{
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
rustup rustup
lldb # for lldb-vscode lldb # for lldb-vscode
@ -34,6 +46,9 @@
}; };
} }
]
);
}
# TODO: Install clippy, cranelift, rust-src # TODO: Install clippy, cranelift, rust-src
# TODO: Install rust targets x86_64-unknown-linux-musl and wasm32-unknown-unknown # TODO: Install rust targets x86_64-unknown-linux-musl and wasm32-unknown-unknown