mirror of
https://github.com/kmein/niveum
synced 2026-03-22 21:01:07 +01:00
Compare commits
7 Commits
cad3d7ecd5
...
858a7e52c3
| Author | SHA1 | Date | |
|---|---|---|---|
| 858a7e52c3 | |||
| f69d5c423c | |||
| 04bf10a356 | |||
| f2e522a52a | |||
| 0cbf4527c0 | |||
| 64972f99b7 | |||
| e4be74ca87 |
@@ -235,6 +235,7 @@ in {
|
||||
./i3.nix
|
||||
./i3status-rust.nix
|
||||
./keyboard.nix
|
||||
{home-manager.users.me.home.file.".XCompose".source = ../lib/keyboards/XCompose;}
|
||||
./lb.nix
|
||||
./mpv.nix
|
||||
./mime.nix
|
||||
|
||||
@@ -55,10 +55,6 @@ in {
|
||||
|
||||
environment.etc."x11-locale".source = toString pkgs.xorg.libX11 + "share/X11/locale";
|
||||
|
||||
home-manager.users.me = {
|
||||
home.file.".XCompose".source = ../lib/keyboards/XCompose;
|
||||
};
|
||||
|
||||
console.keyMap = "de";
|
||||
|
||||
environment.systemPackages =
|
||||
|
||||
@@ -17,28 +17,28 @@ in {
|
||||
# stylix.image = inputs.wallpapers.outPath + "/meteora/rodrigo-soares-250630.jpg";
|
||||
stylix.image = generatedWallpaper;
|
||||
|
||||
environment.etc."stylix/wallpaper.png".source = generatedWallpaper;
|
||||
# environment.etc."stylix/wallpaper.png".source = generatedWallpaper;
|
||||
|
||||
# stylix.polarity = "either";
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/${
|
||||
# "onedark"
|
||||
# synth-midnight-dark
|
||||
# apprentice # https://romainl.github.io/Apprentice/
|
||||
# one-light
|
||||
# onedark
|
||||
# material # https://github.com/ntpeters/base16-materialtheme-scheme
|
||||
# "material-palenight"
|
||||
# material-lighter
|
||||
# tomorrow # https://github.com/chriskempson/tomorrow-theme
|
||||
# tomorrow-night
|
||||
# gruvbox-light-medium # https://github.com/dawikur/base16-gruvbox-scheme
|
||||
# gruvbox-dark-medium
|
||||
# selenized-light # https://github.com/jan-warchol/selenized
|
||||
# selenized-dark
|
||||
# papercolor-light
|
||||
# papercolor-dark
|
||||
"dracula" # https://draculatheme.com/
|
||||
}.yaml";
|
||||
# stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/${
|
||||
# onedark
|
||||
# synth-midnight-dark
|
||||
# apprentice # https://romainl.github.io/Apprentice/
|
||||
# one-light
|
||||
# onedark
|
||||
# material # https://github.com/ntpeters/base16-materialtheme-scheme
|
||||
# material-palenight
|
||||
# material-lighter
|
||||
# tomorrow # https://github.com/chriskempson/tomorrow-theme
|
||||
# tomorrow-night
|
||||
# gruvbox-light-medium # https://github.com/dawikur/base16-gruvbox-scheme
|
||||
# gruvbox-dark-medium
|
||||
# selenized-light # https://github.com/jan-warchol/selenized
|
||||
# selenized-dark
|
||||
# papercolor-light
|
||||
# papercolor-dark
|
||||
# dracula # https://draculatheme.com/
|
||||
# }.yaml";
|
||||
|
||||
stylix.fonts = {
|
||||
serif = {
|
||||
|
||||
@@ -292,6 +292,7 @@
|
||||
packages = rec {
|
||||
auc = pkgs.callPackage packages/auc.nix {};
|
||||
betacode = pkgs.callPackage packages/betacode.nix {};
|
||||
brassica = pkgs.callPackage packages/brassica.nix {};
|
||||
cheat-sh = pkgs.callPackage packages/cheat-sh.nix {};
|
||||
closest = pkgs.callPackage packages/closest {};
|
||||
cyberlocker-tools = pkgs.callPackage packages/cyberlocker-tools.nix {};
|
||||
|
||||
@@ -1911,9 +1911,14 @@ in
|
||||
stream = "https://divyavani.radioca.st/stream";
|
||||
}
|
||||
{
|
||||
station = "XXX sanskrit radio";
|
||||
station = "Sanskrit Bharati";
|
||||
tags = [tags.text tags.indian];
|
||||
stream = "https://stream-23.zeno.fm/m08mkwsyw8quv?zs=0w7MJFPdRfavhR_zPt0M2g";
|
||||
stream = "https://stream-23.zeno.fm/m08mkwsyw8quv";
|
||||
}
|
||||
{
|
||||
stream = "http://epsilon.shoutca.st:8070/stream";
|
||||
tags = [tags.text tags.indian tags.holy];
|
||||
station = "Divyavani Sanskrit Radio";
|
||||
}
|
||||
{
|
||||
station = "Radio Mariam Arabic";
|
||||
|
||||
@@ -28,6 +28,13 @@
|
||||
example = "*:0/3";
|
||||
default = "daily";
|
||||
};
|
||||
loadCredential = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.string;
|
||||
description = ''
|
||||
This can be used to pass secrets to the systemd service without adding them to the nix store.
|
||||
'';
|
||||
default = [];
|
||||
};
|
||||
reporters = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.path;
|
||||
description = ''
|
||||
@@ -104,6 +111,7 @@
|
||||
WorkingDirectory = "/var/lib/panoptikon";
|
||||
RestartSec = "60";
|
||||
Restart = "on-failure";
|
||||
LoadCredential = watcherOptions.loadCredential;
|
||||
};
|
||||
unitConfig = {
|
||||
StartLimitIntervalSec = "300";
|
||||
|
||||
5
packages/brassica.nix
Normal file
5
packages/brassica.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
haskell,
|
||||
haskellPackages,
|
||||
}:
|
||||
haskell.lib.dontCheck (haskell.lib.unmarkBroken (haskell.lib.doJailbreak haskellPackages.brassica))
|
||||
@@ -193,7 +193,7 @@
|
||||
| ${jq}/bin/jq -r '
|
||||
.total as $total | (
|
||||
.entries
|
||||
| map("\(.feed.category.title) \u001b[32m\(.author)\u001b[0m \(.title)")
|
||||
| map(select(.feed | .hide_globally| not) | "\(.feed.category.title) \u001b[32m\(.author)\u001b[0m \(.title)")
|
||||
| join("\n")
|
||||
)'
|
||||
'';
|
||||
|
||||
2
secrets
2
secrets
Submodule secrets updated: cc426c750e...5c4171e425
@@ -13,6 +13,17 @@
|
||||
retiolumLink = true;
|
||||
};
|
||||
|
||||
telegram-kmein = let
|
||||
chatId = "-1001796440545";
|
||||
in
|
||||
pkgs.writers.writeDash "telegram-fulltext" ''
|
||||
export TOKEN="$(cat "$CREDENTIALS_DIRECTORY/token")"
|
||||
${pkgs.curl}/bin/curl -X POST "https://api.telegram.org/bot''${TOKEN}/sendMessage" \
|
||||
-d chat_id=${chatId} \
|
||||
-d text="$(cat)" \
|
||||
| ${pkgs.jq}/bin/jq -e .ok
|
||||
'';
|
||||
|
||||
irc-kmein = panoptikon.kpaste-irc {
|
||||
messagePrefix = "$PANOPTIKON_WATCHER: ";
|
||||
target = "kmein";
|
||||
@@ -20,6 +31,8 @@
|
||||
retiolumLink = false;
|
||||
};
|
||||
in {
|
||||
age.secrets.telegram-token-kmein.file = ../../secrets/telegram-token-kmein.age;
|
||||
|
||||
services.panoptikon = {
|
||||
enable = true;
|
||||
watchers = {
|
||||
@@ -38,6 +51,13 @@ in {
|
||||
script = panoptikon.url "http://lammla.info/index.php?reihe=30";
|
||||
reporters = [irc-kmein];
|
||||
};
|
||||
btc = {
|
||||
script = panoptikon.url "https://eur.rate.sx/1BTC";
|
||||
reporters = [telegram-kmein];
|
||||
loadCredential = [
|
||||
"token:${config.age.secrets.telegram-token-kmein.path}"
|
||||
];
|
||||
};
|
||||
kratylos = {
|
||||
script = panoptikon.url "https://kratylos.reichert-online.org/current_issue/KRATYLOS";
|
||||
reporters = [irc-kmein];
|
||||
|
||||
@@ -19,6 +19,8 @@ in {
|
||||
promptColours.success = "cyan";
|
||||
};
|
||||
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/dracula.yaml";
|
||||
|
||||
nix.settings = {
|
||||
cores = 1;
|
||||
max-jobs = 2;
|
||||
|
||||
@@ -32,6 +32,8 @@ in {
|
||||
syncthing-key.file = ../../secrets/manakish-syncthing-key.age;
|
||||
};
|
||||
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-light-medium.yaml";
|
||||
|
||||
niveum = {
|
||||
batteryName = "BAT0";
|
||||
wirelessInterface = "wlp3s0";
|
||||
|
||||
Reference in New Issue
Block a user