-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,5 +99,7 @@ | |
mappedHosts = builtins.mapAttrs (n: v: mkHost {name = n;}) hosts; | ||
in | ||
mappedHosts; | ||
|
||
inherit pkgs unstable; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
username, | ||
... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
unstable, | ||
username, | ||
... | ||
}: | ||
with lib; | ||
with lib.my; let | ||
cfg = config.modules.dev.ides; | ||
avaiableIdes = builtins.listToAttrs ( | ||
builtins.map (value: { | ||
name = value.pname; | ||
inherit value; | ||
}) | ||
(with pkgs.jetbrains; [ | ||
clion | ||
datagrip | ||
dataspell | ||
gateway | ||
goland | ||
idea-community | ||
idea-ultimate | ||
mps | ||
phpstorm | ||
pycharm-community | ||
pycharm-professional | ||
rider | ||
ruby-mine | ||
unstable.jetbrains.rust-rover | ||
webstorm | ||
]) | ||
); | ||
in { | ||
options.modules.dev.ides = mkOption { | ||
description = "A list of JetBrains IDEs names to install"; | ||
example = ["rust-rover" "webstorm"]; | ||
default = []; | ||
type = with types; listOf (enum (builtins.attrNames avaiableIdes)); | ||
}; | ||
|
||
config = mkIf (cfg != []) { | ||
home-manager.users.${username} = { | ||
home.packages = builtins.map (name: avaiableIdes.${name}) cfg; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{lib, ...}: | ||
with lib; { | ||
# TODO: Remove when https://github.com/vinceliuice/WhiteSur-icon-theme/pull/293 will be upstreamed to nixpkgs | ||
pkgs = singleton (final: prev: { | ||
whitesur-icon-theme = prev.whitesur-icon-theme.overrideAttrs { | ||
src = final.fetchFromGitHub { | ||
owner = "zakuciael"; | ||
repo = "WhiteSur-icon-theme"; | ||
rev = "90a6787061bfb5a630f4295eda59d1058cf30da5"; | ||
hash = "sha256-S10HagxiZxbyhsmzS12X7SJOF9YqWKuhZqfjcc0mog8="; | ||
}; | ||
}; | ||
}); | ||
} |