DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: 4fd7974f9a84c728df741450cd59bbb522660286 nix-arta/modules/shell.nix -rw-r--r-- 651 bytes
4fd7974fJonni Liljamo feat: remove elvish and carapace a day ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
Opinionated shell environment.
*/
{
  flake.modules.nixos.shell = {pkgs, ...}: {
    environment.systemPackages = with pkgs; [
      btop
      fd
      ripgrep
      silicon
      sl
    ];

    programs.direnv = {
      enable = true;
      nix-direnv.enable = true;
      silent = true;
    };
  };

  flake.modules.homeManager.shell = {...}: {
    programs.bash = {
      enable = true;
      bashrcExtra = ''
        eval "$(direnv hook bash)"
        eval "$(starship init bash)"
      '';
    };
    programs.starship = {
      enable = true;
      settings = {
        add_newline = false;
        scan_timeout = 10;
      };
    };
  };
}