forked from kentookura/scriptorium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
72 lines (70 loc) · 2.06 KB
/
Copy pathflake.nix
File metadata and controls
72 lines (70 loc) · 2.06 KB
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
68
69
70
71
72
{
description = "Scriptorium (/skrɪpˈtɔːriəm/), is commonly used to refer to a room in medieval European monestaries devoted to the writing, copying and illuminating of manuscripts commonly handled by the monastic scribes";
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-21.05;
flake-utils.url = github:numtide/flake-utils;
documents.url = github:kentookura/latex-flake;
neovim.url = github:kentookura/neovim;
doom-emacs.url = github:vlaci/nix-doom-emacs;
home-manager.url = github:nix-community/home-manager;
};
outputs = {
self,
nixpkgs,
flake-utils,
documents,
neovim,
doom-emacs,
home-manager,
} @ inputs: let
specialArgs = {
inherit pkgs neovim doom-emacs;
};
pkgs = import inputs.nixpkgs {
config.allowUnfree = true;
system = "x86_64-linux";
overlays = with inputs; [
(self: super: {
neovimKento = neovim.packages."x86_64-linux".neovim;
})
(self: super: {
doom-emacs = doom-emacs.packages."x86_64-linux".default;
})
(self: super: {
vscodeKento = with pkgs;
vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with vscode-extensions; [
james-yu.latex-workshop
bbenoist.Nix
jnoortheen.nix-ide
];
};
})
];
};
in rec {
devShells."x86_64-linux".default = import ./shell.nix {
inherit pkgs;
config = {};
};
templates = {
default = {
path = ./templates/latex;
description = "Uni Wien Latex Template";
};
course = {
path = ./templates/course;
description = "Notes for a Course";
};
};
#nixosModules =
#home-manager.nixosModules.home-manager
#{
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
# home-manager.extraSpecialArgs = specialArgs;
#};
packages."x86_64-linux".default = documents.packages."x86_64-linux".default;
};
}