Skip to content

Commit a1fdfdc

Browse files
authored
dank-calendar: init (#2381)
Link: #2378 Link: #2381 Tested-by: Thomas Bemme <thomas.bemme@gmail.com> Tested-by: Noah Biewesch <dev@noahbiewesch.com> Reviewed-by: Noah Biewesch <dev@noahbiewesch.com>
1 parent a04ba47 commit a1fdfdc

8 files changed

Lines changed: 111 additions & 0 deletions

File tree

flake/dev/flake.lock

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake/dev/flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@
130130
dev-systems.url = "github:nix-systems/default";
131131

132132
# keep-sorted start block=yes newline_separated=yes
133+
dank-calendar = {
134+
url = "github:AvengeMedia/dankcalendar";
135+
inputs.nixpkgs.follows = "dev-nixpkgs";
136+
};
137+
133138
dankMaterialShell = {
134139
url = "github:AvengeMedia/DankMaterialShell";
135140
inputs = {

generated/all-maintainers.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,13 @@
243243
githubId = 19377854;
244244
name = "jamie";
245245
};
246+
thbemme = {
247+
email = "thomas.bemme@googlemail.com";
248+
github = "thbemme";
249+
githubId = 14074615;
250+
matrix = "@riza:chaos.jetzt";
251+
name = "Thomas Bemme";
252+
};
246253
trueNAHO = {
247254
email = "nix@noahbiewesch.com";
248255
github = "trueNAHO";

modules/dank-calendar/hm.nix

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
mkTarget,
3+
lib,
4+
options,
5+
pkgs,
6+
...
7+
}:
8+
mkTarget {
9+
config = lib.optionals (options.programs ? dank-calendar) [
10+
(
11+
{ colors }:
12+
{
13+
programs.dank-calendar.settings = {
14+
colorSource = "custom";
15+
customThemeFile =
16+
let
17+
theme = with colors.withHashtag; {
18+
name = "Stylix";
19+
primary = base0D;
20+
primaryText = base00;
21+
primaryContainer = base0C;
22+
secondary = base0E;
23+
surface = base01;
24+
surfaceText = base05;
25+
surfaceVariant = base02;
26+
surfaceVariantText = base04;
27+
surfaceTint = base0D;
28+
background = base00;
29+
backgroundText = base05;
30+
outline = base03;
31+
surfaceContainer = base01;
32+
surfaceContainerHigh = base02;
33+
surfaceContainerHighest = base03;
34+
error = base08;
35+
warning = base0A;
36+
info = base0C;
37+
};
38+
in
39+
pkgs.writeText "dank-calendar-stylix-color-theme.json" (
40+
builtins.toJSON {
41+
dark = theme;
42+
light = theme;
43+
}
44+
);
45+
};
46+
}
47+
)
48+
];
49+
}

modules/dank-calendar/meta.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{ lib, ... }:
2+
{
3+
name = "DankCalendar";
4+
homepage = "https://github.com/AvengeMedia/dankcalendar";
5+
maintainers = [ lib.maintainers.thbemme ];
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{ lib, ... }:
2+
{
3+
stylix.testbed.ui = {
4+
graphicalEnvironment = "hyprland";
5+
command.text = "dcal";
6+
sendNotifications = true;
7+
};
8+
9+
home-manager.sharedModules = lib.singleton {
10+
programs.dank-calendar.enable = true;
11+
};
12+
}

stylix/maintainers.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@
8989
github = "skiletro";
9090
githubId = 19377854;
9191
};
92+
thbemme = {
93+
email = "thomas.bemme@googlemail.com";
94+
github = "thbemme";
95+
githubId = 14074615;
96+
matrix = "@riza:chaos.jetzt";
97+
name = "Thomas Bemme";
98+
};
9299
vidhanio = {
93100
email = "me@vidhan.io";
94101
name = "Vidhan Bhatt";

stylix/testbed/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ let
3535
{
3636
inherit (inputs.spicetify-nix.nixosModules) spicetify;
3737

38+
dank-calendar.home-manager.sharedModules = [
39+
inputs.dank-calendar.homeModules.default
40+
];
41+
3842
dank-material-shell.home-manager.sharedModules = [
3943
inputs.dankMaterialShell.homeModules.dank-material-shell
4044
];

0 commit comments

Comments
 (0)