mirror of
https://github.com/kmein/niveum
synced 2026-03-21 20:31:07 +01:00
Compare commits
5 Commits
87f73a8fc1
...
new-krops
| Author | SHA1 | Date | |
|---|---|---|---|
| 704f745f5e | |||
| 93dd8bd702 | |||
| 6e995764d4 | |||
| 87b9fc49ea | |||
| b4e42e6b22 |
@@ -1,6 +1,5 @@
|
|||||||
{ pkgs, lib, ... }: let
|
{ pkgs, lib, ... }: let
|
||||||
swallow = command: "${pkgs.scripts.swallow}/bin/swallow ${command}";
|
swallow = command: "${pkgs.scripts.swallow}/bin/swallow ${command}";
|
||||||
nixpkgs-unstable = import <nixpkgs-unstable> { config.allowUnfree = true; };
|
|
||||||
in {
|
in {
|
||||||
environment.shellAliases.smpv = swallow "mpv";
|
environment.shellAliases.smpv = swallow "mpv";
|
||||||
|
|
||||||
@@ -22,7 +21,7 @@ in {
|
|||||||
"Alt+j" = "add video-pan-y -0.05";
|
"Alt+j" = "add video-pan-y -0.05";
|
||||||
};
|
};
|
||||||
scripts = [
|
scripts = [
|
||||||
nixpkgs-unstable.mpvScripts.youtube-quality
|
pkgs.mpvScripts.youtube-quality
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ in {
|
|||||||
(pkgs.writers.writeDashBin "ncmpcpp-zaatar" ''MPD_HOST=${(import <niveum/lib/local-network.nix>).zaatar} exec ${pkgs.ncmpcpp}/bin/ncmpcpp "$@"'')
|
(pkgs.writers.writeDashBin "ncmpcpp-zaatar" ''MPD_HOST=${(import <niveum/lib/local-network.nix>).zaatar} exec ${pkgs.ncmpcpp}/bin/ncmpcpp "$@"'')
|
||||||
(pkgs.writers.writeDashBin "mpc-zaatar" ''MPD_HOST=${(import <niveum/lib/local-network.nix>).zaatar} exec ${pkgs.mpc_cli}/bin/mpc "$@"'')
|
(pkgs.writers.writeDashBin "mpc-zaatar" ''MPD_HOST=${(import <niveum/lib/local-network.nix>).zaatar} exec ${pkgs.mpc_cli}/bin/mpc "$@"'')
|
||||||
|
|
||||||
nixpkgs-unstable.spotify
|
spotify
|
||||||
ncspot
|
ncspot
|
||||||
playerctl
|
playerctl
|
||||||
|
|
||||||
|
|||||||
46
flake.lock
generated
46
flake.lock
generated
@@ -2,11 +2,11 @@
|
|||||||
"nodes": {
|
"nodes": {
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1638122382,
|
"lastModified": 1644229661,
|
||||||
"narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=",
|
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "74f7e4319258e287b0f9cb95426c9853b282730b",
|
"rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -22,11 +22,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1639871969,
|
"lastModified": 1643933536,
|
||||||
"narHash": "sha256-6feWUnMygRzA9tzkrfAzpA5/NBYg75bkFxnqb1DtD7E=",
|
"narHash": "sha256-yRmsWAG4DnLxLIUtlaZsl0kH7rN5xSoyNRlf0YZrcH4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "697cc8c68ed6a606296efbbe9614c32537078756",
|
"rev": "2860d7e3bb350f18f7477858f3513f9798896831",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -46,11 +46,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1632420452,
|
"lastModified": 1644957911,
|
||||||
"narHash": "sha256-ncK6vABW/Ku9XI0kqj1otarUfblryoQzSaOCnaZ0oSs=",
|
"narHash": "sha256-ggie/j7pdBqzDs4W7OiPmhqH9IGbXAbJxGqBdVxA8jA=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "krops",
|
"repo": "krops",
|
||||||
"rev": "0388970c568905fedcbf429e5745aacd4f7a6633",
|
"rev": "86fb3d2ee94fd8306231853b323ed8804edf26ec",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -109,27 +109,27 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1641829252,
|
"lastModified": 1644837400,
|
||||||
"narHash": "sha256-CI0qi7k1Y4nFna+kdQtVCbN4ZEVwZcD/oIGgfTcUNrA=",
|
"narHash": "sha256-treFS89w/xKzeTjJSJdYp/Ceddv6oqq7bL9mZMQDPi0=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5d3420c1285073d5061a5d88a533b347d1222750",
|
"rev": "a03ae0e6d078cfdbb8404c3bff3622bd4e2f1c57",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "release-21.11",
|
"ref": "nixos-21.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1641935776,
|
"lastModified": 1644951967,
|
||||||
"narHash": "sha256-8q/V9EgzyW0KvGnBjbTfQ19qoTCFqsEd1mF9DheCukw=",
|
"narHash": "sha256-j+l8bt++dsYTJSGABuqeBEom5aNpD4n0BsOTdewFYuU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bd20b7f07fd337b2e85420edd642382a2cc0196d",
|
"rev": "05e1f8a2c7797b0d9f9e07ab2aaeccecdcf9b7da",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -158,11 +158,11 @@
|
|||||||
"retiolum": {
|
"retiolum": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1644242494,
|
"lastModified": 1644849126,
|
||||||
"narHash": "sha256-/iZdXU5BuE6vwHhZ4CmOTQTlqTWhI2x7E6HS7AdxFF0=",
|
"narHash": "sha256-iaRNvfQrUD+ZownDWWNdDwhVPgSsU5ojvVdswVq1IpY=",
|
||||||
"owner": "krebs",
|
"owner": "krebs",
|
||||||
"repo": "retiolum",
|
"repo": "retiolum",
|
||||||
"rev": "7b086d3599cb4dca4c22b8128897a4c6dd39d1c3",
|
"rev": "6de359ef848dc1f38fb76731c35e712ee885fd88",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -210,11 +210,11 @@
|
|||||||
"stockholm": {
|
"stockholm": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1641747862,
|
"lastModified": 1644865613,
|
||||||
"narHash": "sha256-gAGM3sxCP//k83CUow3ZpeHQCeuW62YJ6kWvWd8D1vk=",
|
"narHash": "sha256-z7hPtMYxoQuWyLujUs5vbdZOGbjFosh+/IX3GpCDlkc=",
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"rev": "f67bd5783d6ed2be836c7714ea38cbb3f7ac7257",
|
"rev": "e3785b22b2c6cb173a58fd066c4eda80a67fb872",
|
||||||
"revCount": 10285,
|
"revCount": 10404,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://cgit.lassul.us/stockholm"
|
"url": "https://cgit.lassul.us/stockholm"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
description = "niveum: packages, modules, systems";
|
description = "niveum: packages, modules, systems";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/release-21.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11";
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/master";
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/master";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|||||||
28
packages/radioeins-album-der-woche.yaml
Normal file
28
packages/radioeins-album-der-woche.yaml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
regex: https://www.radioeins.de/musik/cd_der_woche/
|
||||||
|
selectors:
|
||||||
|
httpsettings:
|
||||||
|
cookie: {}
|
||||||
|
header: {}
|
||||||
|
useragent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
|
||||||
|
Chrome/90.0.4430.72 Safari/537.36
|
||||||
|
insecure: false
|
||||||
|
feed:
|
||||||
|
title: .boxhead h2
|
||||||
|
description: .manualteaserShortText
|
||||||
|
authorname: ""
|
||||||
|
authoremail: ""
|
||||||
|
item:
|
||||||
|
container: .doctyperezension
|
||||||
|
title: h2 a.rezension
|
||||||
|
link: a.rezension
|
||||||
|
linkattr: href
|
||||||
|
created: .manualteaserDateTime
|
||||||
|
createdformat: 02.01.2006
|
||||||
|
description: .manualteaserShortText
|
||||||
|
content: ""
|
||||||
|
image: picture > img
|
||||||
|
imageattr: src
|
||||||
|
nextpage: ""
|
||||||
|
nextpageattr: href
|
||||||
|
nextpagecount: 0
|
||||||
|
sort: ""
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
nixpkgs-unstable = import <nixpkgs-unstable> { config.allowUnfree = true; };
|
|
||||||
inherit (import <niveum/lib>) retiolumAddresses;
|
inherit (import <niveum/lib>) retiolumAddresses;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -22,7 +21,7 @@ in
|
|||||||
maxJobs = 2;
|
maxJobs = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [ nixpkgs-unstable.minecraft ];
|
environment.systemPackages = [ pkgs.minecraft ];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "kabsa";
|
hostName = "kabsa";
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ in
|
|||||||
./matterbridge.nix
|
./matterbridge.nix
|
||||||
./menstruation.nix
|
./menstruation.nix
|
||||||
./moinbot.nix
|
./moinbot.nix
|
||||||
|
./horoscopy.nix
|
||||||
./monitoring
|
./monitoring
|
||||||
./moodle-dl-borsfaye.nix
|
./moodle-dl-borsfaye.nix
|
||||||
./names.nix
|
./names.nix
|
||||||
@@ -44,6 +45,8 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix.nixPath = [ "/var/src" ];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
firewall.allowedTCPPorts = [ 80 443 ];
|
firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
hostName = "makanek";
|
hostName = "makanek";
|
||||||
|
|||||||
45
systems/makanek/horoscopy.nix
Normal file
45
systems/makanek/horoscopy.nix
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
port = 5040;
|
||||||
|
punkt = pkgs.fetchzip {
|
||||||
|
url = "https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/packages/tokenizers/punkt.zip";
|
||||||
|
sha256 = "113cv87dj5ml7g8pjm7psk4q1hrf0zqpmc945lmpdz91vp2wn1nc";
|
||||||
|
};
|
||||||
|
horoscopy-src = pkgs.fetchzip {
|
||||||
|
url = "http://c.krebsco.de/horoscopy.tar.gz";
|
||||||
|
stripRoot = false;
|
||||||
|
hash = "sha256-KBAbCvayTEr4+cOHnMXHCBA+8RWDMiQF65xzP4fOdaE=";
|
||||||
|
};
|
||||||
|
horoscopy = import horoscopy-src;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
systemd.services.horoscopy = {
|
||||||
|
wants = [ "network-online.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
description = "AI astrologer";
|
||||||
|
serviceConfig = {
|
||||||
|
DynamicUser = true;
|
||||||
|
};
|
||||||
|
environment.NLTK_DATA = pkgs.linkFarm "punkt-tokenizers" [
|
||||||
|
{ name = "tokenizers/punkt"; path = punkt; }
|
||||||
|
];
|
||||||
|
script = ''
|
||||||
|
cd ${horoscopy-src}
|
||||||
|
${horoscopy.dependencyEnv}/bin/gunicorn wsgi:app -b :${toString port}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
recommendedGzipSettings = true;
|
||||||
|
recommendedOptimisation = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
recommendedTlsSettings = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."horoscopy.kmein.de" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/".proxyPass = "http://127.0.0.1:${toString port}";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -76,33 +76,20 @@ in {
|
|||||||
)))
|
)))
|
||||||
end
|
end
|
||||||
|
|
||||||
output.icecast(
|
def make_streams(name, audio, ~description, ~genre) =
|
||||||
mount = '/lyrikline.ogg',
|
output.icecast(%vorbis, audio, mount = name ^ ".ogg", genre = genre, description = description,
|
||||||
port = ${toString config.services.icecast.listen.port},
|
port = ${toString config.services.icecast.listen.port},
|
||||||
password = "${icecastPassword}",
|
password = "${icecastPassword}",
|
||||||
description = "lyrikline. listen to the poet (unofficial)",
|
)
|
||||||
%vorbis,
|
output.icecast(%opus, audio, mount = name ^ ".opus", genre = genre, description = description,
|
||||||
random_url("${lyrikline-poem}")
|
port = ${toString config.services.icecast.listen.port},
|
||||||
)
|
password = "${icecastPassword}",
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
output.icecast(
|
make_streams("lyrikline", random_url("${lyrikline-poem}"), description="lyrikline. listen to the poet (unofficial)", genre="poetry")
|
||||||
mount = '/lyrik.ogg',
|
make_streams("lyrik", random_url("${stavenhagen-poem}"), description="Fritz Stavenhagen – Lyrik für alle | www.deutschelyrik.de", genre="poetry")
|
||||||
port = ${toString config.services.icecast.listen.port},
|
make_streams("wikipedia", random_url("${wikipedia-article}"), description="Zufällige Artikel von Wikipedia", genre="useless knowledge")
|
||||||
password = "${icecastPassword}",
|
|
||||||
description = "Lyrik für alle – Neue Lust auf Lyrik | www.deutschelyrik.de",
|
|
||||||
%vorbis,
|
|
||||||
random_url("${stavenhagen-poem}")
|
|
||||||
)
|
|
||||||
|
|
||||||
output.icecast(
|
|
||||||
mount = '/wikipedia.ogg',
|
|
||||||
port = ${toString config.services.icecast.listen.port},
|
|
||||||
password = "${icecastPassword}",
|
|
||||||
description = "Zufällige Artikel von Wikipedia",
|
|
||||||
genre = "useless knowledge",
|
|
||||||
%vorbis,
|
|
||||||
random_url("${wikipedia-article}")
|
|
||||||
)
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
systemd.services.radio.environment.TMPDIR = liquidsoapDirectory;
|
systemd.services.radio.environment.TMPDIR = liquidsoapDirectory;
|
||||||
|
|||||||
Reference in New Issue
Block a user