Skip to content

Commit

Permalink
Fetch irbrc from another repository (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick authored Jul 30, 2023
1 parent 134c5a2 commit a91e889
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
15 changes: 14 additions & 1 deletion home/.config/home-manager/home.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{ config, pkgs, ... }:

# FAQ
# - How to get sha256? => assume by `lib.fakeSha256`

{
# Home Manager needs a bit of information about you and the
# paths it should manage.
Expand Down Expand Up @@ -150,7 +153,6 @@
xdg.configFile."git/config".source = ../git/config;
xdg.configFile."fish/fish_variables".source = ../fish/fish_variables;
xdg.configFile."fish/functions/fish_prompt.fish".source = ../fish/functions/fish_prompt.fish;
xdg.configFile."irb/irbrc".source = ../irb/irbrc;
xdg.configFile."alacritty/alacritty.yml".source = ../alacritty/alacritty.yml;

# Not under "starship/starship.toml"
Expand All @@ -164,6 +166,17 @@
# - https://github.com/kachick/dotfiles/issues/142
home.file.".stack/config.yaml".source = ../../../home/.stack/config.yaml;

xdg.configFile."irb/irbrc".text = builtins.readFile (
pkgs.fetchFromGitHub
{
owner = "kachick";
repo = "irb-power_assert";
rev = "98ad68b4c391bb30adee1ba119cb6c6ed5bd0bfc";
sha256 = "sha256-Su3jaPELaBKa+CJpNp6OzOb/6/wwGk7JDxP/w9wVBtM=";
}
+ "/examples/.irbrc"
);

# https://github.com/rbenv/rbenv-default-gems/issues/17
home.file.".default-gems".text = ''
irb-power_assert
Expand Down
19 changes: 0 additions & 19 deletions home/.config/irb/irbrc

This file was deleted.

0 comments on commit a91e889

Please sign in to comment.