Rust support for idea

This commit is contained in:
2022-05-10 00:51:19 +01:00
parent 95968b9088
commit f77c16ad28
3 changed files with 25 additions and 8 deletions

12
flake.lock generated
View File

@@ -22,11 +22,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1651531343, "lastModified": 1651886851,
"narHash": "sha256-DBJFMNlWcht3jdKE2KVbcy1g/e/yryrSs1qSViQd4lE=", "narHash": "sha256-kbXOJSf1uho0/7P54nZkJdJY3oAelIjyc6tfiRhaXJI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "0304f0f58b4c538ff704c58d53a778b062810ec7", "rev": "882bd8118bdbff3a6e53e5ced393932b351ce2f6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -60,11 +60,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1651007983, "lastModified": 1651726670,
"narHash": "sha256-GNay7yDPtLcRcKCNHldug85AhAvBpTtPEJWSSDYBw8U=", "narHash": "sha256-dSGdzB49SEvdOJvrQWfQYkAefewXraHIV08Vz6iDXWQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e10da1c7f542515b609f8dfbcf788f3d85b14936", "rev": "c777cdf5c564015d5f63b09cc93bef4178b19b01",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -6,6 +6,21 @@
headless, headless,
... ...
}: let }: let
idea = with pkgs;
symlinkJoin {
name = "idea-ultimate";
paths = [
jetbrains.idea-ultimate
];
buildInputs = [makeWrapper];
postBuild = ''
wrapProgram $out/bin/idea-ultimate --prefix PATH : ${symlinkJoin {
name = "rust-toolchain";
paths = [rustc cargo];
}}/bin
'';
};
cliPackages = with pkgs; [ cliPackages = with pkgs; [
aerc aerc
direnv direnv
@@ -37,7 +52,7 @@
discord discord
feh feh
iosevka iosevka
jetbrains.goland idea
mpv mpv
nerdfonts nerdfonts
pamixer pamixer
@@ -68,6 +83,8 @@ in {
file = { file = {
".icons/default".source = "${pkgs.capitaine-cursors}/share/icons/capitaine-cursors"; ".icons/default".source = "${pkgs.capitaine-cursors}/share/icons/capitaine-cursors";
".rust".source = pkgs.rustPlatform.rustcSrc;
"bin/update" = { "bin/update" = {
source = ../../scripts/update; source = ../../scripts/update;
executable = true; executable = true;

View File

@@ -12,7 +12,7 @@
}; };
}; };
programs.kitty.font.size = 17; programs.kitty.font.size = 19;
services.picom = { services.picom = {
enable = true; enable = true;