mirror of
https://github.com/kmein/niveum
synced 2026-03-30 09:11:10 +02:00
Compare commits
7 Commits
cad3d7ecd5
...
858a7e52c3
| Author | SHA1 | Date | |
|---|---|---|---|
| 858a7e52c3 | |||
| f69d5c423c | |||
| 04bf10a356 | |||
| f2e522a52a | |||
| 0cbf4527c0 | |||
| 64972f99b7 | |||
| e4be74ca87 |
@@ -235,6 +235,7 @@ in {
|
|||||||
./i3.nix
|
./i3.nix
|
||||||
./i3status-rust.nix
|
./i3status-rust.nix
|
||||||
./keyboard.nix
|
./keyboard.nix
|
||||||
|
{home-manager.users.me.home.file.".XCompose".source = ../lib/keyboards/XCompose;}
|
||||||
./lb.nix
|
./lb.nix
|
||||||
./mpv.nix
|
./mpv.nix
|
||||||
./mime.nix
|
./mime.nix
|
||||||
|
|||||||
@@ -55,10 +55,6 @@ in {
|
|||||||
|
|
||||||
environment.etc."x11-locale".source = toString pkgs.xorg.libX11 + "share/X11/locale";
|
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";
|
console.keyMap = "de";
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
|
|||||||
@@ -17,28 +17,28 @@ in {
|
|||||||
# stylix.image = inputs.wallpapers.outPath + "/meteora/rodrigo-soares-250630.jpg";
|
# stylix.image = inputs.wallpapers.outPath + "/meteora/rodrigo-soares-250630.jpg";
|
||||||
stylix.image = generatedWallpaper;
|
stylix.image = generatedWallpaper;
|
||||||
|
|
||||||
environment.etc."stylix/wallpaper.png".source = generatedWallpaper;
|
# environment.etc."stylix/wallpaper.png".source = generatedWallpaper;
|
||||||
|
|
||||||
# stylix.polarity = "either";
|
# stylix.polarity = "either";
|
||||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/${
|
# stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/${
|
||||||
# "onedark"
|
# onedark
|
||||||
# synth-midnight-dark
|
# synth-midnight-dark
|
||||||
# apprentice # https://romainl.github.io/Apprentice/
|
# apprentice # https://romainl.github.io/Apprentice/
|
||||||
# one-light
|
# one-light
|
||||||
# onedark
|
# onedark
|
||||||
# material # https://github.com/ntpeters/base16-materialtheme-scheme
|
# material # https://github.com/ntpeters/base16-materialtheme-scheme
|
||||||
# "material-palenight"
|
# material-palenight
|
||||||
# material-lighter
|
# material-lighter
|
||||||
# tomorrow # https://github.com/chriskempson/tomorrow-theme
|
# tomorrow # https://github.com/chriskempson/tomorrow-theme
|
||||||
# tomorrow-night
|
# tomorrow-night
|
||||||
# gruvbox-light-medium # https://github.com/dawikur/base16-gruvbox-scheme
|
# gruvbox-light-medium # https://github.com/dawikur/base16-gruvbox-scheme
|
||||||
# gruvbox-dark-medium
|
# gruvbox-dark-medium
|
||||||
# selenized-light # https://github.com/jan-warchol/selenized
|
# selenized-light # https://github.com/jan-warchol/selenized
|
||||||
# selenized-dark
|
# selenized-dark
|
||||||
# papercolor-light
|
# papercolor-light
|
||||||
# papercolor-dark
|
# papercolor-dark
|
||||||
"dracula" # https://draculatheme.com/
|
# dracula # https://draculatheme.com/
|
||||||
}.yaml";
|
# }.yaml";
|
||||||
|
|
||||||
stylix.fonts = {
|
stylix.fonts = {
|
||||||
serif = {
|
serif = {
|
||||||
|
|||||||
@@ -292,6 +292,7 @@
|
|||||||
packages = rec {
|
packages = rec {
|
||||||
auc = pkgs.callPackage packages/auc.nix {};
|
auc = pkgs.callPackage packages/auc.nix {};
|
||||||
betacode = pkgs.callPackage packages/betacode.nix {};
|
betacode = pkgs.callPackage packages/betacode.nix {};
|
||||||
|
brassica = pkgs.callPackage packages/brassica.nix {};
|
||||||
cheat-sh = pkgs.callPackage packages/cheat-sh.nix {};
|
cheat-sh = pkgs.callPackage packages/cheat-sh.nix {};
|
||||||
closest = pkgs.callPackage packages/closest {};
|
closest = pkgs.callPackage packages/closest {};
|
||||||
cyberlocker-tools = pkgs.callPackage packages/cyberlocker-tools.nix {};
|
cyberlocker-tools = pkgs.callPackage packages/cyberlocker-tools.nix {};
|
||||||
|
|||||||
@@ -1911,9 +1911,14 @@ in
|
|||||||
stream = "https://divyavani.radioca.st/stream";
|
stream = "https://divyavani.radioca.st/stream";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
station = "XXX sanskrit radio";
|
station = "Sanskrit Bharati";
|
||||||
tags = [tags.text tags.indian];
|
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";
|
station = "Radio Mariam Arabic";
|
||||||
|
|||||||
@@ -28,6 +28,13 @@
|
|||||||
example = "*:0/3";
|
example = "*:0/3";
|
||||||
default = "daily";
|
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 {
|
reporters = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.path;
|
type = lib.types.listOf lib.types.path;
|
||||||
description = ''
|
description = ''
|
||||||
@@ -104,6 +111,7 @@
|
|||||||
WorkingDirectory = "/var/lib/panoptikon";
|
WorkingDirectory = "/var/lib/panoptikon";
|
||||||
RestartSec = "60";
|
RestartSec = "60";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
LoadCredential = watcherOptions.loadCredential;
|
||||||
};
|
};
|
||||||
unitConfig = {
|
unitConfig = {
|
||||||
StartLimitIntervalSec = "300";
|
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 '
|
| ${jq}/bin/jq -r '
|
||||||
.total as $total | (
|
.total as $total | (
|
||||||
.entries
|
.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")
|
| join("\n")
|
||||||
)'
|
)'
|
||||||
'';
|
'';
|
||||||
|
|||||||
2
secrets
2
secrets
Submodule secrets updated: cc426c750e...5c4171e425
@@ -13,6 +13,17 @@
|
|||||||
retiolumLink = true;
|
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 {
|
irc-kmein = panoptikon.kpaste-irc {
|
||||||
messagePrefix = "$PANOPTIKON_WATCHER: ";
|
messagePrefix = "$PANOPTIKON_WATCHER: ";
|
||||||
target = "kmein";
|
target = "kmein";
|
||||||
@@ -20,6 +31,8 @@
|
|||||||
retiolumLink = false;
|
retiolumLink = false;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
age.secrets.telegram-token-kmein.file = ../../secrets/telegram-token-kmein.age;
|
||||||
|
|
||||||
services.panoptikon = {
|
services.panoptikon = {
|
||||||
enable = true;
|
enable = true;
|
||||||
watchers = {
|
watchers = {
|
||||||
@@ -38,6 +51,13 @@ in {
|
|||||||
script = panoptikon.url "http://lammla.info/index.php?reihe=30";
|
script = panoptikon.url "http://lammla.info/index.php?reihe=30";
|
||||||
reporters = [irc-kmein];
|
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 = {
|
kratylos = {
|
||||||
script = panoptikon.url "https://kratylos.reichert-online.org/current_issue/KRATYLOS";
|
script = panoptikon.url "https://kratylos.reichert-online.org/current_issue/KRATYLOS";
|
||||||
reporters = [irc-kmein];
|
reporters = [irc-kmein];
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ in {
|
|||||||
promptColours.success = "cyan";
|
promptColours.success = "cyan";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/dracula.yaml";
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
cores = 1;
|
cores = 1;
|
||||||
max-jobs = 2;
|
max-jobs = 2;
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ in {
|
|||||||
syncthing-key.file = ../../secrets/manakish-syncthing-key.age;
|
syncthing-key.file = ../../secrets/manakish-syncthing-key.age;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-light-medium.yaml";
|
||||||
|
|
||||||
niveum = {
|
niveum = {
|
||||||
batteryName = "BAT0";
|
batteryName = "BAT0";
|
||||||
wirelessInterface = "wlp3s0";
|
wirelessInterface = "wlp3s0";
|
||||||
|
|||||||
Reference in New Issue
Block a user