Charlotte 🦝 Delenk
c00e75f6ce
Some checks failed
Hydra checks.x86_64-linux.containers-default Hydra build #25737 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.not522-installer Hydra build #25831 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #25741 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.pc-installer Hydra build #25832 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.thinkrac Hydra build #25834 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra nixosConfigurations.not522 Hydra build #25830 of nixos-config:pr618:nixosConfigurations.not522
Hydra packages.x86_64-linux.art-lotte Hydra build #25756 of nixos-config:pr618:packages.x86_64-linux.art-lotte
Hydra packages.aarch64-linux.art-lotte-bgs-nsfw Hydra build #25748 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-nsfw
Hydra packages.riscv64-linux.art-lotte Hydra build #25752 of nixos-config:pr618:packages.riscv64-linux.art-lotte
Hydra packages.aarch64-linux.art-lotte Hydra build #25747 of nixos-config:pr618:packages.aarch64-linux.art-lotte
Hydra packages.x86_64-linux.art-lotte-bgs-nsfw Hydra build #25757 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-nsfw
Hydra packages.riscv64-linux.art-lotte-bgs-sfw Hydra build #25754 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-sfw
Hydra packages.aarch64-linux.art-lotte-bgs-sfw Hydra build #25749 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-sfw
Hydra packages.aarch64-linux.kodi-joyn Hydra build #25750 of nixos-config:pr618:packages.aarch64-linux.kodi-joyn
Hydra packages.x86_64-linux.kodi-joyn Hydra build #25759 of nixos-config:pr618:packages.x86_64-linux.kodi-joyn
Hydra packages.x86_64-linux.package-updater Hydra build #25760 of nixos-config:pr618:packages.x86_64-linux.package-updater
Hydra nixosConfigurations.rainbow-resort Hydra build #25833 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #25739 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra devShells.x86_64-linux.default Hydra build #25738 of nixos-config:pr618:devShells.x86_64-linux.default
Hydra packages.aarch64-linux.package-updater Hydra build #25751 of nixos-config:pr618:packages.aarch64-linux.package-updater
Hydra packages.x86_64-linux.art-lotte-bgs-sfw Hydra build #25758 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-sfw
Hydra packages.riscv64-linux.art-lotte-bgs-nsfw Hydra build #25753 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-nsfw
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
systemConfig,
|
|
...
|
|
}:
|
|
{
|
|
home.packages = with pkgs; [
|
|
rust-bin.stable.latest.default
|
|
cargo-mommy
|
|
clang
|
|
];
|
|
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 /persistent${config.xdg.cacheHome}/cargo - - - - -"
|
|
"d /persistent${config.xdg.cacheHome}/cargo/git - - - - -"
|
|
"d /persistent${config.xdg.cacheHome}/cargo/registry - - - - -"
|
|
"L /persistent${config.xdg.dataHome}/cargo/git - - - - ${config.xdg.cacheHome}/cargo/git"
|
|
"L /persistent${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;
|
|
};
|
|
};
|
|
}
|