-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
49 lines (47 loc) · 1.08 KB
/
flake.nix
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
48
49
{
description = "A flake for my system environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
};
outputs = { self, nixpkgs }:
let
system = builtins.currentSystem;
pkgs = import nixpkgs {
inherit system;
};
genericPackages = with pkgs; [
gawk
gh
git
kitty
starship
stow
which
kanata
(neovim.overrideAttrs (oldAttrs: {
version = "0.10.0";
src = fetchFromGitHub {
owner = "neovim";
repo = "neovim";
rev = "v0.10.0";
sha256 = "0p366agcv4lz1qs453i44f9h37r09r58qj8g2wpbj0g4f6js48ql";
};
}))
];
linuxPackages = with pkgs; [
bashInteractive
dunst
i3
jgmenu
rofi
];
nonLinuxPackages = with pkgs; [
zsh
];
in {
packages.${system} = pkgs.buildEnv {
name = "system-env";
paths = genericPackages ++ (if pkgs.stdenv.isLinux then linuxPackages else nonLinuxPackages);
};
};
}