Skip to content

Commit

Permalink
feat: add bitcoinstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed May 29, 2024
1 parent 4e2b962 commit 336688b
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 23 deletions.
66 changes: 45 additions & 21 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
url = "github:lighttigerXIV/catppuccinifier";
inputs.nixpkgs.follows = "nixpkgs";
};
lyricsapi= {
lyricsapi = {
url = "github:sioodmy/lyricsapi";
inputs.nixpkgs.follows = "nixpkgs";
};
Expand All @@ -170,6 +170,15 @@
flake-parts.follows = "flake-parts";
};
};
bitcoinstatus = {
# url = "github:sioodmy/bitcoinstatus";
url = "path:/home/sioodmy/dev/bitcoinstatus";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
treefmt-nix.follows = "treefmt-nix";
};
};
};
}
# see also:
Expand Down
2 changes: 1 addition & 1 deletion home/rice/niri/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ with theme.colors; {
"Mod+Space".action = spawn "${pkgs.fuzzel}/bin/fuzzel";
"Mod+V".action = sh "${pkgs.cliphist}/bin/cliphist list | fuzzel --dmenu | cliphist decode | wl-copy";
"Mod+Shift+Period".action = spawn "emoji";
"Mod+Shift+L".action = spawn "gtklock";
"Mod+Shift+L".action = sh "niri msg action power-off-monitors; gtklock";

"XF86AudioRaiseVolume".action = spawn "pamixer" "-i" "5";
"XF86AudioLowerVolume".action = spawn "pamixer" "-d" "5";
Expand Down
Binary file added secrets/discordtoken.age
Binary file not shown.
1 change: 1 addition & 0 deletions secrets/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ in {

"mailserver.age".publicKeys = prometheus;
"caldav.age".publicKeys = prometheus;
"discordtoken.age".publicKeys = prometheus;
}
1 change: 1 addition & 0 deletions system/core/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ in {
(forHost ["calypso"] ../../secrets/radicale-pass.age "radicale-pass" user)
(forHost ["prometheus"] ../../secrets/mailserver.age "mailserver" {mode = "400";})
(forHost ["prometheus"] ../../secrets/caldav.age "caldav" {mode = "400";})
(forHost ["prometheus"] ../../secrets/discordtoken.age "discordtoken" {mode = "400";})

(forHost ["iapetus"] ../../secrets/radicale.age "radicale" {
owner = "radicale";
Expand Down
9 changes: 9 additions & 0 deletions system/server/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
pkgs,
inputs,
config,
...
}:
let
inherit (config.age) secrets;
in
# TODO
{
imports = [
./mail.nix
inputs.lyricsapi.nixosModules.default
inputs.bitcoinstatus.nixosModules.default
];
services.nginx = {
enable = true;
Expand Down Expand Up @@ -58,6 +63,10 @@
};
};
services.lyricsapi.enable = true;
services.bitcoinstatus = {
enable = true;
tokenFile = secrets.discordtoken.path;
};

security.acme = {
acceptTerms = true;
Expand Down

0 comments on commit 336688b

Please sign in to comment.