aboutsummaryrefslogtreecommitdiff
path: root/hosts/mercury/hjem.nix
blob: 307317a30378834caa13392e0dda96d6c21cf84c (plain)
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
38
39
40
41
42
43
44
45
46
47
{pkgs, ...}: let
  rust-shell = let
    rustProfile = pkgs.buildEnv {
      name = "rust-profile";
      paths = with pkgs; [rustc cargo rust-analyzer gcc];
    };
  in
    pkgs.writeShellScriptBin "rust-shell" ''
      export PATH="${rustProfile}/bin:$PATH"
      export RUST_BACKTRACE=1
      exec $SHELL
    '';

  py-shell = let
    pythonProfile = pkgs.python314.withPackages (ps:
      with ps; [
        numpy
        matplotlib
        pandas
        jupyter
        ipython
      ]);
  in
    pkgs.writeShellScriptBin "py-shell" ''
      export PATH="${pythonProfile}/bin:$PATH"
      export PYTHONSTARTUP=""
      exec $SHELL
    '';
in {
  packages = with pkgs; [
    anki
    libreoffice-qt
    musescore
    vscodium

    noctalia-shell

    prismlauncher
    mpv
    irssi

    (pkgs.callPackage ../../pkgs/yo {})

    rust-shell
    py-shell
  ];
}