-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
67 lines (60 loc) · 1.74 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
grubTheme.url = "github:max-ishere/grub-theme.nix?ref=main";
grubTheme.inputs.nixpkgs.follows = "nixpkgs";
hywenhei-extended-font = {
url = "github:cawa-93/HYWenHei-Extended-Font?ref=main";
flake = false;
};
};
outputs = {
self,
nixpkgs,
grubTheme,
hywenhei-extended-font,
}: let
system = "x86_64-linux";
unfreePkgs = import nixpkgs {
inherit system;
config.allowUnfree = true; # like this
};
pkgs = nixpkgs.legacyPackages.${system};
inherit (nixpkgs) lib;
in {
formatter.${system} = pkgs.alejandra;
theme = pkgs.callPackage ./nix/theme.nix {
grubTheme = grubTheme.lib;
inherit hywenhei-extended-font;
};
packages.${system} = import ./nix/packages/grubshin-bootpact.nix {
inherit (self) theme;
inherit lib;
grubTheme = grubTheme.lib;
};
# Internal CI build stuff
_ci = {
release = pkgs.callPackage ./ci/release.nix {grubshin-bootpact = lib.filterAttrs (name: _: !(name == "override" || name == "overrideDerivation")) self.packages.${system};};
};
devShells.${system} = {
default = pkgs.mkShell {
buildInputs = with pkgs; [
(unfreePkgs.vscode-with-extensions.override {
vscodeExtensions = with vscode-extensions; [
vscodevim.vim
jnoortheen.nix-ide
ms-vscode.hexeditor
github.vscode-github-actions
bierner.markdown-preview-github-styles
#me-dutour-mathieu.vscode-github-actions
];
})
nixd
inkscape
resvg
];
};
};
};
}