-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
139 lines (130 loc) · 5.07 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
description = "Jaspers Nix configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
agenda-txt.url = "github:jwoudenberg/agenda.txt";
agenda-txt.inputs.nixpkgs.follows = "nixpkgs";
cooklang.url = "github:jwoudenberg/cooklang";
cooklang.inputs.nixpkgs.follows = "nixpkgs";
jujutsu.url = "github:bnjmnt4n/jj/ssh-openssh";
launch.url = "github:jwoudenberg/launch";
launch.inputs.nixpkgs.follows = "nixpkgs";
random-colors.url = "github:jwoudenberg/random-colors";
random-colors.inputs.nixpkgs.follows = "nixpkgs";
similar-sort.url = "github:BrianHicks/similar-sort";
paulus.url = "github:jwoudenberg/paulus";
paulus.inputs.nixpkgs.follows = "nixpkgs";
todo-txt-web.url = "github:jwoudenberg/todo-txt-web";
todo-txt-web.inputs.nixpkgs.follows = "nixpkgs";
tree-sitter-roc.url = "github:jwoudenberg/tree-sitter-roc";
tree-sitter-roc.inputs.nixpkgs.follows = "nixpkgs";
update-systemd-resolved.url = "github:jonathanio/update-systemd-resolved";
update-systemd-resolved.inputs.nixpkgs.follows = "nixpkgs"; # optional
vale-Joblint.flake = false;
vale-Joblint.url = "github:errata-ai/Joblint";
vale-alex.flake = false;
vale-alex.url = "github:errata-ai/alex";
vale-proselint.flake = false;
vale-proselint.url = "github:errata-ai/proselint";
vale-write-good.flake = false;
vale-write-good.url = "github:errata-ai/write-good";
vim-spell-nl.url = "http://ftp.vim.org/vim/runtime/spell/nl.utf-8.spl";
vim-spell-nl.flake = false;
};
outputs =
inputs:
let
system = "x86_64-linux";
pkgs = import inputs.nixpkgs {
system = system;
config.allowUnfree = true;
};
in
{
overlays = {
linuxCustomPkgs = final: prev: {
agenda-txt = inputs.agenda-txt.packages."${system}".agenda-txt;
ics-to-agenda-txt = inputs.agenda-txt.packages."${system}".ics-to-agenda-txt;
cooklang = inputs.cooklang.defaultPackage."${system}";
dedrm = prev.writeShellScriptBin "dedrm" ''
set -euxo pipefail
ACSM_FILE=$(realpath "$1")
TEMP_DIR=$(mktemp --directory --tmpdir dedrm-XXXXXX)
pushd "$TEMP_DIR"
ADEPT_DIR="$TEMP_DIR/adept"
${pkgs.libgourou}/bin/adept_activate --anonymous --output-dir "$ADEPT_DIR"
${pkgs.libgourou}/bin/acsmdownloader "$ACSM_FILE" --adept-directory "$ADEPT_DIR" --output-file "drm_book.epub"
${pkgs.libgourou}/bin/adept_remove "drm_book.epub" --adept-directory "$ADEPT_DIR" --output-file "book.epub"
'';
jwlaunch = inputs.launch.defaultPackage."${system}";
random-colors = inputs.random-colors.defaultPackage."${system}";
similar-sort = inputs.similar-sort.defaultPackage."${system}";
paulus = inputs.paulus.defaultPackage."${system}";
todo-txt-web = inputs.todo-txt-web.defaultPackage."${system}";
valeStyles = pkgs.linkFarm "vale-styles" [
{
name = "alex";
path = "${inputs.vale-alex}/alex";
}
{
name = "Joblint";
path = "${inputs.vale-Joblint}/Joblint";
}
{
name = "proselint";
path = "${inputs.vale-proselint}/proselint";
}
{
name = "write-good";
path = "${inputs.vale-write-good}/write-good";
}
];
nvim-treesitter-roc = inputs.tree-sitter-roc.neovimPlugin."${system}";
vim-spell-nl = "${inputs.vim-spell-nl}";
jujutsu = inputs.jujutsu.packages."${system}".jujutsu;
};
};
nixosConfigurations.fragile-walrus = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
flakeInputs = inputs;
};
modules = [
(import ./fragile-walrus/configuration.nix)
inputs.update-systemd-resolved.nixosModules.update-systemd-resolved
];
};
nixosConfigurations.sentient-tshirt = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
flakeInputs = inputs;
};
modules = [
(import ./sentient-tshirt/configuration.nix)
inputs.update-systemd-resolved.nixosModules.update-systemd-resolved
];
};
nixosConfigurations.ai-banana = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
flakeInputs = inputs;
};
modules = [ (import ./ai-banana/configuration.nix) ];
};
nixosConfigurations.airborne-cactus = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
flakeInputs = inputs;
};
modules = [ (import ./airborne-cactus/configuration.nix) ];
};
devShell."x86_64-linux" = pkgs.mkShell {
buildInputs = [
pkgs.libgourou
pkgs.luaformatter
pkgs.lua53Packages.luacheck
];
};
};
}