-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
38 lines (37 loc) · 908 Bytes
/
Copy pathflake.nix
File metadata and controls
38 lines (37 loc) · 908 Bytes
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
{
description = "corgi";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = {
self,
nixpkgs,
...
}: let
systems = nixpkgs.lib.platforms.unix;
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in {
packages = forAllSystems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
rustup = pkgs.rustup;
});
devShells = forAllSystems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
packages = builtins.attrValues self.packages.${system};
in {
default = pkgs.mkShell {
packages = packages;
shellHook = ''
alias vim=nvim
# Forgive me
export HISTFILESIZE=
export HISTSIZE=
export PS1="\[\033[1;32m\][esc:\w]\$\[\033[0m\] "
'';
};
});
};
}