-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
41 lines (34 loc) · 1.04 KB
/
default.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
{ pkgs, ... }:
let
themecordFiller = builtins.readFile ./css/ThemecordFiller.css;
themecordBase = builtins.readFile ./css/Themecord.css;
discordColorsContent = builtins.readFile ./scripts/themecord.sh;
pywalTemplate = pkgs.writeTextFile {
name = "pywal-template";
destination = "~/.config/wal/templates/colors-discord.css";
text = builtins.readFile ./css/pywal/colors-discord.css;
};
wallustConfig = pkgs.writeTextFile {
name = "wallust-config";
destination = "~/.config/wallust/wallust.toml";
text = builtins.readFile ./css/wallust/wallust.toml;
};
wallustTemplate = pkgs.writeTextFile {
name = "wallust-template";
destination = "~/.config/wallust/templates/colors-discord.css";
text = builtins.readFile ./css/wallust/colors-discord.css;
};
in
pkgs.writeScriptBin "themecord" ''
#!/usr/bin/env bash
# Generated by nix
themecordFiller=$(cat << 'EOF'
${themecordFiller}
EOF
)
themecordBase=$(cat << 'EOF'
${themecordBase}
EOF
)
${discordColorsContent}
''