add rustc
Some checks failed
Hydra packages.riscv64-linux.art-lotte Hydra build #25287 of nixos-config:pr618:packages.riscv64-linux.art-lotte
Hydra packages.aarch64-linux.art-lotte Hydra build #25283 of nixos-config:pr618:packages.aarch64-linux.art-lotte
Hydra nixosConfigurations.thinkrac Hydra build #25385 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra packages.x86_64-linux.art-lotte-bgs-sfw Hydra build #25293 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-sfw
Hydra packages.x86_64-linux.art-lotte-bgs-nsfw Hydra build #25292 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-nsfw
Hydra packages.riscv64-linux.package-updater Hydra build #25374 of nixos-config:pr618:packages.riscv64-linux.package-updater
Hydra packages.aarch64-linux.kodi-joyn Hydra build #25372 of nixos-config:pr618:packages.aarch64-linux.kodi-joyn
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #25277 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra packages.aarch64-linux.package-updater Hydra build #25373 of nixos-config:pr618:packages.aarch64-linux.package-updater
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #25276 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra packages.riscv64-linux.art-lotte-bgs-sfw Hydra build #25289 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-sfw
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #25275 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra packages.aarch64-linux.art-lotte-bgs-nsfw Hydra build #25284 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-nsfw
Hydra packages.aarch64-linux.art-lotte-bgs-sfw Hydra build #25285 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-sfw
Hydra nixosConfigurations.not522-installer Hydra build #25382 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra packages.riscv64-linux.art-lotte-bgs-nsfw Hydra build #25288 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-nsfw
Hydra packages.x86_64-linux.kodi-joyn Hydra build #25375 of nixos-config:pr618:packages.x86_64-linux.kodi-joyn
Hydra packages.x86_64-linux.package-updater Hydra build #25376 of nixos-config:pr618:packages.x86_64-linux.package-updater
Hydra packages.x86_64-linux.art-lotte Hydra build #25291 of nixos-config:pr618:packages.x86_64-linux.art-lotte
Hydra nixosConfigurations.not522 Hydra build #25381 of nixos-config:pr618:nixosConfigurations.not522
Hydra checks.x86_64-linux.containers-default Hydra build #25380 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.rainbow-resort Hydra build #25384 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra nixosConfigurations.pc-installer Hydra build #25383 of nixos-config:pr618:nixosConfigurations.pc-installer
Some checks failed
Hydra packages.riscv64-linux.art-lotte Hydra build #25287 of nixos-config:pr618:packages.riscv64-linux.art-lotte
Hydra packages.aarch64-linux.art-lotte Hydra build #25283 of nixos-config:pr618:packages.aarch64-linux.art-lotte
Hydra nixosConfigurations.thinkrac Hydra build #25385 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra packages.x86_64-linux.art-lotte-bgs-sfw Hydra build #25293 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-sfw
Hydra packages.x86_64-linux.art-lotte-bgs-nsfw Hydra build #25292 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-nsfw
Hydra packages.riscv64-linux.package-updater Hydra build #25374 of nixos-config:pr618:packages.riscv64-linux.package-updater
Hydra packages.aarch64-linux.kodi-joyn Hydra build #25372 of nixos-config:pr618:packages.aarch64-linux.kodi-joyn
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #25277 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra packages.aarch64-linux.package-updater Hydra build #25373 of nixos-config:pr618:packages.aarch64-linux.package-updater
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #25276 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra packages.riscv64-linux.art-lotte-bgs-sfw Hydra build #25289 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-sfw
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #25275 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra packages.aarch64-linux.art-lotte-bgs-nsfw Hydra build #25284 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-nsfw
Hydra packages.aarch64-linux.art-lotte-bgs-sfw Hydra build #25285 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-sfw
Hydra nixosConfigurations.not522-installer Hydra build #25382 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra packages.riscv64-linux.art-lotte-bgs-nsfw Hydra build #25288 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-nsfw
Hydra packages.x86_64-linux.kodi-joyn Hydra build #25375 of nixos-config:pr618:packages.x86_64-linux.kodi-joyn
Hydra packages.x86_64-linux.package-updater Hydra build #25376 of nixos-config:pr618:packages.x86_64-linux.package-updater
Hydra packages.x86_64-linux.art-lotte Hydra build #25291 of nixos-config:pr618:packages.x86_64-linux.art-lotte
Hydra nixosConfigurations.not522 Hydra build #25381 of nixos-config:pr618:nixosConfigurations.not522
Hydra checks.x86_64-linux.containers-default Hydra build #25380 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.rainbow-resort Hydra build #25384 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra nixosConfigurations.pc-installer Hydra build #25383 of nixos-config:pr618:nixosConfigurations.pc-installer
This commit is contained in:
parent
2c2e1b7aa0
commit
eb25937535
5 changed files with 75 additions and 0 deletions
21
flake.lock
21
flake.lock
|
@ -378,11 +378,32 @@
|
|||
"plasma-manager": "plasma-manager",
|
||||
"pre-commit-hooks": "pre-commit-hooks",
|
||||
"riscv-overlay": "riscv-overlay",
|
||||
"rust-overlay": "rust-overlay",
|
||||
"sops-nix": "sops-nix",
|
||||
"systems": "systems",
|
||||
"vscode-server": "vscode-server"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731464916,
|
||||
"narHash": "sha256-WZ5rpjr/wCt7yBOUsvDE2i22hYz9g8W921jlwVktRQ4=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "2c19bad6e881b5a154cafb7f9106879b5b356d1f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"sops-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
|
|
@ -65,6 +65,10 @@
|
|||
url = "github:DarkKirb/riscv-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
lib,
|
||||
inTester,
|
||||
self,
|
||||
rust-overlay,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
|
@ -27,6 +28,7 @@ with lib;
|
|||
{
|
||||
nixpkgs.overlays = [
|
||||
self.overlays.default
|
||||
(import rust-overlay)
|
||||
];
|
||||
}
|
||||
else
|
||||
|
|
47
programs/desktop/development/rust/default.nix
Normal file
47
programs/desktop/development/rust/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
systemConfig,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
(rust-bin.selectLatestNightlyWith (toolchain: toolchain.default))
|
||||
cargo-mommy
|
||||
];
|
||||
home.shellAliases = {
|
||||
cargo = "${pkgs.cargo-mommy}/bin/cargo-mommy";
|
||||
};
|
||||
home.sessionVariables =
|
||||
(
|
||||
if systemConfig.isNSFW then
|
||||
{
|
||||
CARGO_MOMMYS_MOODS = "chill/thirsty/yikes";
|
||||
CARGO_MOMMYS_LITTLE = "racc/plush";
|
||||
CARGO_MOMMYS_PARTS = "shit/pee";
|
||||
CARGO_MOMMYS_FUCKING = "pet/toy/toilet/shitslut/septic tank";
|
||||
}
|
||||
else
|
||||
{
|
||||
CARGO_MOMMYS_MOODS = "chill";
|
||||
CARGO_MOMMYS_LITTLE = "racc/plush";
|
||||
}
|
||||
)
|
||||
// {
|
||||
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
||||
};
|
||||
systemd.user.tmpfiles.rules = [
|
||||
"d ${config.xdg.cacheHome}/cargo - - - - -"
|
||||
"d ${config.xdg.cacheHome}/cargo/git - - - - -"
|
||||
"d ${config.xdg.cacheHome}/cargo/registry - - - - -"
|
||||
"L ${config.xdg.dataHome}/cargo/git - - - - ${config.xdg.cacheHome}/cargo/git"
|
||||
"L ${config.xdg.dataHome}/cargo/registry - - - - ${config.xdg.cacheHome}/cargo/registry"
|
||||
];
|
||||
xdg.dataFile."cargo/config.toml".source = (pkgs.formats.toml { }).generate "config.toml" {
|
||||
build.target-dir = "${config.xdg.cacheHome}/cargo/target";
|
||||
profile.release = {
|
||||
lto = true;
|
||||
codegen-units = 1;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -10,6 +10,7 @@
|
|||
"${nixos-config}/services/desktop"
|
||||
./kodi
|
||||
./pim
|
||||
./development/rust
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
kdePackages.kalk
|
||||
|
|
Loading…
Reference in a new issue