mirror of
https://github.com/kmein/niveum
synced 2026-03-21 04:11:07 +01:00
Compare commits
12 Commits
8ffb0bd245
...
mympd
| Author | SHA1 | Date | |
|---|---|---|---|
| d06d0a9de4 | |||
| d4e82500ae | |||
| 6aa9be6f70 | |||
| 4e362678ca | |||
| a2081dece4 | |||
| 98cf188a17 | |||
| 4932c7c08a | |||
| c8a6991f09 | |||
| 5d3c9a67ab | |||
|
|
659a888c3d | ||
| 26908b03a3 | |||
| feccea5234 |
@@ -3,7 +3,9 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
inherit (import <niveum/lib>) tmpfilesConfig;
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
<niveum/modules/dropbox.nix>
|
<niveum/modules/dropbox.nix>
|
||||||
];
|
];
|
||||||
@@ -12,11 +14,32 @@
|
|||||||
dropbox.enable = false;
|
dropbox.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
system.activationScripts.home-symlinks = ''
|
systemd.tmpfiles.rules = map tmpfilesConfig [
|
||||||
ln -sfn ${config.users.users.me.home}/cloud/syncthing/common/mahlzeit ${config.users.users.me.home}/mahlzeit
|
{
|
||||||
ln -sfn ${config.users.users.me.home}/cloud/Seafile/Wiki ${config.users.users.me.home}/notes
|
type = "L+";
|
||||||
ln -sfn ${config.users.users.me.home}/cloud/Seafile/Uni ${config.users.users.me.home}/uni
|
user = config.users.users.me.name;
|
||||||
'';
|
group = "users";
|
||||||
|
mode = "0755";
|
||||||
|
argument = "${config.users.users.me.home}/cloud/Seafile/Wiki";
|
||||||
|
path = "${config.users.users.me.home}/notes";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "L+";
|
||||||
|
user = config.users.users.me.name;
|
||||||
|
group = "users";
|
||||||
|
mode = "0755";
|
||||||
|
argument = "${config.users.users.me.home}/cloud/Seafile/Uni";
|
||||||
|
path = "${config.users.users.me.home}/uni";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "L+";
|
||||||
|
user = config.users.users.me.name;
|
||||||
|
group = "users";
|
||||||
|
mode = "0755";
|
||||||
|
argument = "${config.users.users.me.home}/cloud/syncthing/common/mahlzeit";
|
||||||
|
path = "${config.users.users.me.home}/mahlzeit";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
home-manager.users.me = {
|
home-manager.users.me = {
|
||||||
services.gnome-keyring.enable = true;
|
services.gnome-keyring.enable = true;
|
||||||
|
|||||||
@@ -1,42 +1,53 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
nixpkgs.config.joypixels.acceptLicense = true;
|
nixpkgs.config.joypixels.acceptLicense = true;
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
enableDefaultFonts = true;
|
enableDefaultFonts = true;
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
fonts = with pkgs; [
|
fonts = with pkgs; [
|
||||||
alegreya
|
alegreya
|
||||||
alegreya-sans
|
alegreya-sans
|
||||||
|
amiri
|
||||||
|
cantarell-fonts
|
||||||
|
charis-sil
|
||||||
corefonts
|
corefonts
|
||||||
|
crimson
|
||||||
eb-garamond
|
eb-garamond
|
||||||
|
etBook
|
||||||
fira
|
fira
|
||||||
font-awesome-ttf
|
font-awesome-ttf
|
||||||
|
gentium
|
||||||
|
gfs-fonts
|
||||||
|
gyre-fonts
|
||||||
|
ia-writer-duospace
|
||||||
ibm-plex
|
ibm-plex
|
||||||
inconsolata
|
jetbrains-mono
|
||||||
iosevka
|
joypixels
|
||||||
libertine
|
libertinus
|
||||||
|
libre-bodoni
|
||||||
lmodern
|
lmodern
|
||||||
|
merriweather
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-cjk
|
ocr-a
|
||||||
noto-fonts-emoji
|
|
||||||
roboto
|
roboto
|
||||||
roboto-mono
|
roboto-mono
|
||||||
roboto-slab
|
roboto-slab
|
||||||
|
scheherazade-new
|
||||||
source-code-pro
|
source-code-pro
|
||||||
source-serif-pro
|
|
||||||
source-sans-pro
|
source-sans-pro
|
||||||
ubuntu_font_family
|
source-serif-pro
|
||||||
gfs-fonts
|
theano
|
||||||
jetbrains-mono
|
|
||||||
twemoji-color-font
|
|
||||||
joypixels
|
|
||||||
tocharian-font
|
tocharian-font
|
||||||
];
|
vistafonts
|
||||||
fontconfig.defaultFonts = {
|
vollkorn
|
||||||
monospace = ["JetBrains Mono" "JoyPixels"];
|
zilla-slab
|
||||||
serif = ["Roboto Slab"];
|
]; # google-fonts league-of-moveable-type
|
||||||
sansSerif = ["Roboto" "Noto Sans"];
|
fontconfig.defaultFonts = let
|
||||||
emoji = ["JoyPixels"];
|
emojiFont = "JoyPixels";
|
||||||
|
in {
|
||||||
|
monospace = ["JetBrains Mono" emojiFont];
|
||||||
|
serif = ["Merriweather"];
|
||||||
|
sansSerif = ["Cantarell" emojiFont];
|
||||||
|
emoji = [emojiFont];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ in {
|
|||||||
programs.mpv = {
|
programs.mpv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
|
ytdl-format = "bestvideo[height<=?720][fps<=?30][vcodec!=?vp9]+bestaudio/best";
|
||||||
ytdl-raw-options = lib.concatStringsSep "," [''sub-lang="de,en"'' "write-sub=" "write-auto-sub="];
|
ytdl-raw-options = lib.concatStringsSep "," [''sub-lang="de,en"'' "write-sub=" "write-auto-sub="];
|
||||||
screenshot-template = "%F-%wH%wM%wS-%#04n";
|
screenshot-template = "%F-%wH%wM%wS-%#04n";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
niveum.telegramBots.transits = {
|
niveum.telegramBots.transits = {
|
||||||
enable = true;
|
enable = false;
|
||||||
time = "*:0/1";
|
time = "*:0/1";
|
||||||
token = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
token = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
||||||
chatIds = ["-1001796440545"];
|
chatIds = ["-1001796440545"];
|
||||||
|
|||||||
38
flake.lock
generated
38
flake.lock
generated
@@ -22,11 +22,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1647175256,
|
"lastModified": 1648834319,
|
||||||
"narHash": "sha256-7H+veXPM7IwdN1DoZqliwb9sghlN56koV5dnCu1kpsc=",
|
"narHash": "sha256-i5Aj4Aw64D/A0X6XW5LxSS4XBnYj7gMz+kN4dpsbdk8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "a8d00f5c038cf7ec54e7dac9c57b171c1217f008",
|
"rev": "0bdbdea2e26c984b096f4f7d10e3c88536a980b0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -62,11 +62,11 @@
|
|||||||
"menstruation-backend": {
|
"menstruation-backend": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1634573652,
|
"lastModified": 1649545504,
|
||||||
"narHash": "sha256-FIj8oCOJO+Wqxr2o5MMqIShvzMJud4iUq3o8y4NIRvw=",
|
"narHash": "sha256-TVm3246ML7gWPeGm+bdb+Qo8o/7nve7sQ2hBdCZm3z8=",
|
||||||
"owner": "kmein",
|
"owner": "kmein",
|
||||||
"repo": "menstruation.rs",
|
"repo": "menstruation.rs",
|
||||||
"rev": "dd405fe2acf32441e8ac56e488e689bb1c4bea82",
|
"rev": "d9f3c6d53542fd7c7ed191e37cf4e342d4a47bcb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -109,11 +109,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1647992509,
|
"lastModified": 1649490789,
|
||||||
"narHash": "sha256-AG40Nt5OWz0LBs5p457emOuwLKOvTtcv/2fUdnEN3Ws=",
|
"narHash": "sha256-YrhVxwoofZSx/wLZ4GYET//8vS+uqWX572zvdmP/Etg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d2caa9377539e3b5ff1272ac3aa2d15f3081069f",
|
"rev": "c86185d20d708013caf97a6adaa8dc6d72313c75",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -125,11 +125,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1648337267,
|
"lastModified": 1649541735,
|
||||||
"narHash": "sha256-8DRg8UDvs63iaIaHEbWG7/lnD9ImQlMNsTZMY3PvFLc=",
|
"narHash": "sha256-JdOywA2jcdGCxNgu0dJA7ZNtaV7sS0HwuZg9YaXd94c=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "6de161729c81dc98e844793cc9c8fda29d5ef62a",
|
"rev": "c2b6e029cd1efa0efd37daab89264ef040ae5669",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -194,11 +194,11 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1648314795,
|
"lastModified": 1648400983,
|
||||||
"narHash": "sha256-hGIXkAcGiJnVXnl8kigZpI3VFrLmAr2+yr85hi5JwP0=",
|
"narHash": "sha256-I9ADWgUN1orbnXPBW4kulHpv8wkx6C8zsQcg9wphpPg=",
|
||||||
"owner": "kmein",
|
"owner": "kmein",
|
||||||
"repo": "scripts",
|
"repo": "scripts",
|
||||||
"rev": "d1d525b92a34e55b1ad886807c284106e58716b2",
|
"rev": "f5df67a2416d8f05a7dbfea269c44668854c7887",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -210,11 +210,11 @@
|
|||||||
"stockholm": {
|
"stockholm": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1648214990,
|
"lastModified": 1649089964,
|
||||||
"narHash": "sha256-rptATGq+jcpL+P+Cr6d3OajV6zYkbHPWlt3aQNZI2TY=",
|
"narHash": "sha256-ybuVI8rnpMyBUoyoIXJ1e3QBMBIOoEgKTiFzIPfzy8A=",
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"rev": "ae9c0b12710b5361d0d45510eb401eebfc1b3fb0",
|
"rev": "b3833baee96d7bce2c54295110b40c646468a1ff",
|
||||||
"revCount": 10497,
|
"revCount": 10500,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://cgit.lassul.us/stockholm"
|
"url": "https://cgit.lassul.us/stockholm"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ let
|
|||||||
ambient = "🧘 Ambient";
|
ambient = "🧘 Ambient";
|
||||||
american = "🇺🇸 USA";
|
american = "🇺🇸 USA";
|
||||||
amro = "👦 Amro";
|
amro = "👦 Amro";
|
||||||
arabic = "🇸🇦 Arabic";
|
arabic = "🇸🇦 عربيic";
|
||||||
balkan = "🇧🇦 Balkan";
|
balkan = "🇧🇦 Balkan";
|
||||||
berlin = "🐻 Berlin";
|
berlin = "🐻 Berlin";
|
||||||
brazilian = "🇧🇷 Brasil";
|
brazilian = "🇧🇷 Brasil";
|
||||||
@@ -34,6 +34,7 @@ let
|
|||||||
rock = "🎸 Rock";
|
rock = "🎸 Rock";
|
||||||
russian = "🇷🇺 Россия";
|
russian = "🇷🇺 Россия";
|
||||||
schlager = "💩 Schlager";
|
schlager = "💩 Schlager";
|
||||||
|
soma = "🍄 σῶμα – सोमः";
|
||||||
text = "📚 Text";
|
text = "📚 Text";
|
||||||
top40 = "♻️ Top 40";
|
top40 = "♻️ Top 40";
|
||||||
trad = "👘 Trad";
|
trad = "👘 Trad";
|
||||||
@@ -738,287 +739,287 @@ in
|
|||||||
logo = "http://soma.fm/img/vaporwaves120.jpg";
|
logo = "http://soma.fm/img/vaporwaves120.jpg";
|
||||||
station = soma-fm-name "Vaporwaves";
|
station = soma-fm-name "Vaporwaves";
|
||||||
stream = soma-fm "vaporwaves";
|
stream = soma-fm "vaporwaves";
|
||||||
tags = [tags.wave];
|
tags = [tags.soma tags.wave];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Featuring the music from an independent record label focused on modern electronic ambient and space music.";
|
desc = "Featuring the music from an independent record label focused on modern electronic ambient and space music.";
|
||||||
logo = "https://somafm.com/img3/synphaera120.jpg";
|
logo = "https://somafm.com/img3/synphaera120.jpg";
|
||||||
station = soma-fm-name "Synphaera";
|
station = soma-fm-name "Synphaera";
|
||||||
stream = soma-fm "synphaera";
|
stream = soma-fm "synphaera";
|
||||||
tags = [tags.ambient];
|
tags = [tags.soma tags.ambient];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Emotional Experiments in Music: Ambient, modern composition, post-rock, & experimental electronic music";
|
desc = "Emotional Experiments in Music: Ambient, modern composition, post-rock, & experimental electronic music";
|
||||||
logo = "http://soma.fm/img/n5md120.png";
|
logo = "http://soma.fm/img/n5md120.png";
|
||||||
station = soma-fm-name "n5MD Radio";
|
station = soma-fm-name "n5MD Radio";
|
||||||
stream = soma-fm "n5md";
|
stream = soma-fm "n5md";
|
||||||
tags = [tags.discover];
|
tags = [tags.soma tags.discover];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "A nicely chilled plate of ambient/downtempo beats and grooves.";
|
desc = "A nicely chilled plate of ambient/downtempo beats and grooves.";
|
||||||
logo = "http://soma.fm/img/groovesalad120.png";
|
logo = "http://soma.fm/img/groovesalad120.png";
|
||||||
station = soma-fm-name "Groove Salad";
|
station = soma-fm-name "Groove Salad";
|
||||||
stream = soma-fm "groovesalad";
|
stream = soma-fm "groovesalad";
|
||||||
tags = [tags.chill];
|
tags = [tags.soma tags.chill];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "The classic (early 2000s) version of a nicely chilled plate of ambient/downtempo beats and grooves.";
|
desc = "The classic (early 2000s) version of a nicely chilled plate of ambient/downtempo beats and grooves.";
|
||||||
logo = "http://soma.fm/img3/gsclassic120.jpg";
|
logo = "http://soma.fm/img3/gsclassic120.jpg";
|
||||||
station = soma-fm-name "Groove Salad Classic";
|
station = soma-fm-name "Groove Salad Classic";
|
||||||
stream = soma-fm "gsclassic";
|
stream = soma-fm "gsclassic";
|
||||||
tags = [tags.chill];
|
tags = [tags.soma tags.chill];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Deep ambient electronic, experimental and space music. For inner and outer space exploration.";
|
desc = "Deep ambient electronic, experimental and space music. For inner and outer space exploration.";
|
||||||
logo = "http://soma.fm/img/deepspaceone120.gif";
|
logo = "http://soma.fm/img/deepspaceone120.gif";
|
||||||
station = soma-fm-name "Deep Space One";
|
station = soma-fm-name "Deep Space One";
|
||||||
stream = soma-fm "deepspaceone";
|
stream = soma-fm "deepspaceone";
|
||||||
tags = [tags.chill];
|
tags = [tags.soma tags.chill];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Tune in, turn on, space out. Spaced-out ambient and mid-tempo electronica.";
|
desc = "Tune in, turn on, space out. Spaced-out ambient and mid-tempo electronica.";
|
||||||
logo = "http://soma.fm/img/sss.jpg";
|
logo = "http://soma.fm/img/sss.jpg";
|
||||||
station = soma-fm-name "Space Station Soma";
|
station = soma-fm-name "Space Station Soma";
|
||||||
stream = soma-fm "spacestation";
|
stream = soma-fm "spacestation";
|
||||||
tags = [tags.chill];
|
tags = [tags.soma tags.chill];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Served best chilled, safe with most medications. Atmospheric textures with minimal beats.";
|
desc = "Served best chilled, safe with most medications. Atmospheric textures with minimal beats.";
|
||||||
logo = "http://soma.fm/img/dronezone120.jpg";
|
logo = "http://soma.fm/img/dronezone120.jpg";
|
||||||
station = soma-fm-name "Drone Zone";
|
station = soma-fm-name "Drone Zone";
|
||||||
stream = soma-fm "dronezone";
|
stream = soma-fm "dronezone";
|
||||||
tags = [tags.ambient];
|
tags = [tags.soma tags.ambient];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Progressive house / trance. Tip top tunes.";
|
desc = "Progressive house / trance. Tip top tunes.";
|
||||||
logo = "http://soma.fm/img/thetrip120.jpg";
|
logo = "http://soma.fm/img/thetrip120.jpg";
|
||||||
station = soma-fm-name "The Trip";
|
station = soma-fm-name "The Trip";
|
||||||
stream = soma-fm "thetrip";
|
stream = soma-fm "thetrip";
|
||||||
tags = [tags.trance tags.party];
|
tags = [tags.soma tags.trance tags.party];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Music for Hacking. The DEF CON Year-Round Channel.";
|
desc = "Music for Hacking. The DEF CON Year-Round Channel.";
|
||||||
logo = "http://soma.fm/img/defcon120.png";
|
logo = "http://soma.fm/img/defcon120.png";
|
||||||
station = soma-fm-name "DEF CON Radio";
|
station = soma-fm-name "DEF CON Radio";
|
||||||
stream = soma-fm "defcon";
|
stream = soma-fm "defcon";
|
||||||
tags = [tags.chill];
|
tags = [tags.soma tags.chill];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Transcending the world of jazz with eclectic, avant-garde takes on tradition.";
|
desc = "Transcending the world of jazz with eclectic, avant-garde takes on tradition.";
|
||||||
logo = "http://soma.fm/img/sonicuniverse120.jpg";
|
logo = "http://soma.fm/img/sonicuniverse120.jpg";
|
||||||
station = soma-fm-name "Sonic Universe";
|
station = soma-fm-name "Sonic Universe";
|
||||||
stream = soma-fm "sonicuniverse";
|
stream = soma-fm "sonicuniverse";
|
||||||
tags = [tags.jazz];
|
tags = [tags.soma tags.jazz];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "NEW! Reggae, Ska, Rocksteady classic and deep tracks.";
|
desc = "NEW! Reggae, Ska, Rocksteady classic and deep tracks.";
|
||||||
logo = "http://soma.fm/img3/reggae120.png";
|
logo = "http://soma.fm/img3/reggae120.png";
|
||||||
station = soma-fm-name "Heavyweight Reggae";
|
station = soma-fm-name "Heavyweight Reggae";
|
||||||
stream = soma-fm "reggae";
|
stream = soma-fm "reggae";
|
||||||
tags = [tags.irie];
|
tags = [tags.soma tags.irie];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Vintage soul tracks from the original 45 RPM vinyl.";
|
desc = "Vintage soul tracks from the original 45 RPM vinyl.";
|
||||||
logo = "http://soma.fm/img/7soul120.png";
|
logo = "http://soma.fm/img/7soul120.png";
|
||||||
station = soma-fm-name "Seven Inch Soul";
|
station = soma-fm-name "Seven Inch Soul";
|
||||||
stream = soma-fm "7soul";
|
stream = soma-fm "7soul";
|
||||||
tags = [tags.groovy tags.vintage];
|
tags = [tags.soma tags.groovy tags.vintage];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Mellow album rock from the Seventies. Yacht not required.";
|
desc = "Mellow album rock from the Seventies. Yacht not required.";
|
||||||
logo = "http://soma.fm/img/seventies120.jpg";
|
logo = "http://soma.fm/img/seventies120.jpg";
|
||||||
station = soma-fm-name "Left Coast 70s";
|
station = soma-fm-name "Left Coast 70s";
|
||||||
stream = soma-fm "seventies";
|
stream = soma-fm "seventies";
|
||||||
tags = [tags.vintage];
|
tags = [tags.soma tags.vintage];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Early 80s UK Synthpop and a bit of New Wave.";
|
desc = "Early 80s UK Synthpop and a bit of New Wave.";
|
||||||
logo = "http://soma.fm/img/u80s-120.png";
|
logo = "http://soma.fm/img/u80s-120.png";
|
||||||
station = soma-fm-name "Underground 80s";
|
station = soma-fm-name "Underground 80s";
|
||||||
stream = soma-fm "u80s";
|
stream = soma-fm "u80s";
|
||||||
tags = [tags.wave tags.vintage];
|
tags = [tags.soma tags.wave tags.vintage];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "The soundtrack for your stylish, mysterious, dangerous life. For Spies and PIs too!";
|
desc = "The soundtrack for your stylish, mysterious, dangerous life. For Spies and PIs too!";
|
||||||
logo = "http://soma.fm/img/secretagent120.jpg";
|
logo = "http://soma.fm/img/secretagent120.jpg";
|
||||||
station = soma-fm-name "Secret Agent";
|
station = soma-fm-name "Secret Agent";
|
||||||
stream = soma-fm "secretagent";
|
stream = soma-fm "secretagent";
|
||||||
tags = [tags.discover];
|
tags = [tags.soma tags.discover];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Sensuous and mellow vocals, mostly female, with an electronic influence.";
|
desc = "Sensuous and mellow vocals, mostly female, with an electronic influence.";
|
||||||
logo = "http://soma.fm/img/lush120.jpg";
|
logo = "http://soma.fm/img/lush120.jpg";
|
||||||
station = soma-fm-name "Lush";
|
station = soma-fm-name "Lush";
|
||||||
stream = soma-fm "lush";
|
stream = soma-fm "lush";
|
||||||
tags = [tags.amro];
|
tags = [tags.soma tags.amro];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Exploring music from Celtic roots and branches";
|
desc = "Exploring music from Celtic roots and branches";
|
||||||
logo = "http://soma.fm/img/thistle120.png";
|
logo = "http://soma.fm/img/thistle120.png";
|
||||||
station = soma-fm-name "ThistleRadio";
|
station = soma-fm-name "ThistleRadio";
|
||||||
stream = soma-fm "thistle";
|
stream = soma-fm "thistle";
|
||||||
tags = [tags.trad tags.irish];
|
tags = [tags.soma tags.trad tags.irish];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Drown in the electronic sound of instrumental hiphop, future soul and liquid trap.";
|
desc = "Drown in the electronic sound of instrumental hiphop, future soul and liquid trap.";
|
||||||
logo = "http://soma.fm/img/fluid120.jpg";
|
logo = "http://soma.fm/img/fluid120.jpg";
|
||||||
station = soma-fm-name "Fluid";
|
station = soma-fm-name "Fluid";
|
||||||
stream = soma-fm "fluid";
|
stream = soma-fm "fluid";
|
||||||
tags = [tags.chill];
|
tags = [tags.soma tags.chill];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Electropop and indie dance rock with sparkle and pop.";
|
desc = "Electropop and indie dance rock with sparkle and pop.";
|
||||||
logo = "http://soma.fm/img/poptron120.png";
|
logo = "http://soma.fm/img/poptron120.png";
|
||||||
station = soma-fm-name "PopTron";
|
station = soma-fm-name "PopTron";
|
||||||
stream = soma-fm "poptron";
|
stream = soma-fm "poptron";
|
||||||
tags = [tags.pop];
|
tags = [tags.soma tags.pop];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "A late night blend of deep-house and downtempo chill.";
|
desc = "A late night blend of deep-house and downtempo chill.";
|
||||||
logo = "http://soma.fm/img/blender120.png";
|
logo = "http://soma.fm/img/blender120.png";
|
||||||
station = soma-fm-name "Beat Blender";
|
station = soma-fm-name "Beat Blender";
|
||||||
stream = soma-fm "beatblender";
|
stream = soma-fm "beatblender";
|
||||||
tags = [tags.chill];
|
tags = [tags.soma tags.chill];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Americana Roots music for Cowhands, Cowpokes and Cowtippers";
|
desc = "Americana Roots music for Cowhands, Cowpokes and Cowtippers";
|
||||||
logo = "http://soma.fm/img/bootliquor120.jpg";
|
logo = "http://soma.fm/img/bootliquor120.jpg";
|
||||||
station = soma-fm-name "Boot Liquor";
|
station = soma-fm-name "Boot Liquor";
|
||||||
stream = soma-fm "bootliquor";
|
stream = soma-fm "bootliquor";
|
||||||
tags = [tags.trad tags.american];
|
tags = [tags.soma tags.trad tags.american];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Classic bachelor pad, playful exotica and vintage music of tomorrow.";
|
desc = "Classic bachelor pad, playful exotica and vintage music of tomorrow.";
|
||||||
logo = "http://soma.fm/img/illstreet.jpg";
|
logo = "http://soma.fm/img/illstreet.jpg";
|
||||||
station = soma-fm-name "Illinois Street Lounge";
|
station = soma-fm-name "Illinois Street Lounge";
|
||||||
stream = soma-fm "illstreet";
|
stream = soma-fm "illstreet";
|
||||||
tags = [tags.jazz tags.groovy];
|
tags = [tags.soma tags.jazz tags.groovy];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "New and classic favorite indie pop tracks.";
|
desc = "New and classic favorite indie pop tracks.";
|
||||||
logo = "http://soma.fm/img/indychick.jpg";
|
logo = "http://soma.fm/img/indychick.jpg";
|
||||||
station = soma-fm-name "Indie Pop Rocks!";
|
station = soma-fm-name "Indie Pop Rocks!";
|
||||||
stream = soma-fm "indiepop";
|
stream = soma-fm "indiepop";
|
||||||
tags = [tags.rock tags.pop];
|
tags = [tags.soma tags.rock tags.pop];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Digitally affected analog rock to calm the agitated heart.";
|
desc = "Digitally affected analog rock to calm the agitated heart.";
|
||||||
logo = "http://soma.fm/img/digitalis120.png";
|
logo = "http://soma.fm/img/digitalis120.png";
|
||||||
station = soma-fm-name "Digitalis";
|
station = soma-fm-name "Digitalis";
|
||||||
stream = soma-fm "digitalis";
|
stream = soma-fm "digitalis";
|
||||||
tags = [tags.chill];
|
tags = [tags.soma tags.chill];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Indie Folk, Alt-folk and the occasional folk classics.";
|
desc = "Indie Folk, Alt-folk and the occasional folk classics.";
|
||||||
logo = "http://soma.fm/img/folkfwd120.jpg";
|
logo = "http://soma.fm/img/folkfwd120.jpg";
|
||||||
station = soma-fm-name "Folk Forward";
|
station = soma-fm-name "Folk Forward";
|
||||||
stream = soma-fm "folkfwd";
|
stream = soma-fm "folkfwd";
|
||||||
tags = [tags.trad];
|
tags = [tags.soma tags.trad];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Blips'n'beeps backed mostly w/beats. Intelligent Dance Music.";
|
desc = "Blips'n'beeps backed mostly w/beats. Intelligent Dance Music.";
|
||||||
logo = "http://soma.fm/img/cliqhop120.png";
|
logo = "http://soma.fm/img/cliqhop120.png";
|
||||||
station = soma-fm-name "cliqhop idm";
|
station = soma-fm-name "cliqhop idm";
|
||||||
stream = soma-fm "cliqhop";
|
stream = soma-fm "cliqhop";
|
||||||
tags = [tags.chill];
|
tags = [tags.soma tags.chill];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Dubstep, Dub and Deep Bass. May damage speakers at high volume.";
|
desc = "Dubstep, Dub and Deep Bass. May damage speakers at high volume.";
|
||||||
logo = "http://soma.fm/img/dubstep120.png";
|
logo = "http://soma.fm/img/dubstep120.png";
|
||||||
station = soma-fm-name "Dub Step Beyond";
|
station = soma-fm-name "Dub Step Beyond";
|
||||||
stream = soma-fm "dubstep";
|
stream = soma-fm "dubstep";
|
||||||
tags = [tags.dubstep];
|
tags = [tags.soma tags.dubstep];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Desi-influenced Asian world beats and beyond.";
|
desc = "Desi-influenced Asian world beats and beyond.";
|
||||||
logo = "http://soma.fm/img/sog120.jpg";
|
logo = "http://soma.fm/img/sog120.jpg";
|
||||||
station = soma-fm-name "Suburbs of Goa";
|
station = soma-fm-name "Suburbs of Goa";
|
||||||
stream = soma-fm "suburbsofgoa";
|
stream = soma-fm "suburbsofgoa";
|
||||||
tags = [];
|
tags = [tags.soma];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Ambient music mixed with the sounds of San Francisco public safety radio traffic.";
|
desc = "Ambient music mixed with the sounds of San Francisco public safety radio traffic.";
|
||||||
logo = "http://soma.fm/img/sf1033120.png";
|
logo = "http://soma.fm/img/sf1033120.png";
|
||||||
station = soma-fm-name "SF 10-33";
|
station = soma-fm-name "SF 10-33";
|
||||||
stream = soma-fm "sf1033";
|
stream = soma-fm "sf1033";
|
||||||
tags = [tags.ambient];
|
tags = [tags.soma tags.ambient];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "San Francisco Public Safety Scanner Feed";
|
desc = "San Francisco Public Safety Scanner Feed";
|
||||||
logo = "http://soma.fm/img/sf1033120.png";
|
logo = "http://soma.fm/img/sf1033120.png";
|
||||||
station = soma-fm-name "SF Police Scanner";
|
station = soma-fm-name "SF Police Scanner";
|
||||||
stream = soma-fm "scanner";
|
stream = soma-fm "scanner";
|
||||||
tags = [tags.text];
|
tags = [tags.soma tags.text];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Celebrating NASA and Space Explorers everywhere.";
|
desc = "Celebrating NASA and Space Explorers everywhere.";
|
||||||
logo = "http://soma.fm/img/missioncontrol120.jpg";
|
logo = "http://soma.fm/img/missioncontrol120.jpg";
|
||||||
station = soma-fm-name "Mission Control";
|
station = soma-fm-name "Mission Control";
|
||||||
stream = soma-fm "missioncontrol";
|
stream = soma-fm "missioncontrol";
|
||||||
tags = [tags.chill];
|
tags = [tags.soma tags.chill];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "From black to doom, prog to sludge, thrash to post, stoner to crossover, punk to industrial.";
|
desc = "From black to doom, prog to sludge, thrash to post, stoner to crossover, punk to industrial.";
|
||||||
logo = "http://soma.fm/img3/metal120.png";
|
logo = "http://soma.fm/img3/metal120.png";
|
||||||
station = soma-fm-name "Metal Detector";
|
station = soma-fm-name "Metal Detector";
|
||||||
stream = soma-fm "metal";
|
stream = soma-fm "metal";
|
||||||
tags = [tags.metal tags.rock];
|
tags = [tags.soma tags.metal tags.rock];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Just covers. Songs you know by artists you don't. We've got you covered.";
|
desc = "Just covers. Songs you know by artists you don't. We've got you covered.";
|
||||||
logo = "http://soma.fm/img/covers120.jpg";
|
logo = "http://soma.fm/img/covers120.jpg";
|
||||||
station = soma-fm-name "Covers";
|
station = soma-fm-name "Covers";
|
||||||
stream = soma-fm "covers";
|
stream = soma-fm "covers";
|
||||||
tags = [tags.pop tags.rock];
|
tags = [tags.soma tags.pop tags.rock];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "From the Playa to the world, for the annual Burning Man festival.";
|
desc = "From the Playa to the world, for the annual Burning Man festival.";
|
||||||
logo = "http://soma.fm/img/1023brc.jpg";
|
logo = "http://soma.fm/img/1023brc.jpg";
|
||||||
station = soma-fm-name "Black Rock FM";
|
station = soma-fm-name "Black Rock FM";
|
||||||
stream = soma-fm "brfm";
|
stream = soma-fm "brfm";
|
||||||
tags = [tags.chill];
|
tags = [tags.soma tags.chill];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Special Live Events and rebroadcasts of past live events";
|
desc = "Special Live Events and rebroadcasts of past live events";
|
||||||
logo = "http://soma.fm/img/SomaFMDJSquare120.jpg";
|
logo = "http://soma.fm/img/SomaFMDJSquare120.jpg";
|
||||||
station = soma-fm-name "SomaFM Live";
|
station = soma-fm-name "SomaFM Live";
|
||||||
stream = soma-fm "live";
|
stream = soma-fm "live";
|
||||||
tags = [tags.discover];
|
tags = [tags.soma tags.discover];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "SomaFM's wacky and eclectic holiday mix. Not for the easily offended.";
|
desc = "SomaFM's wacky and eclectic holiday mix. Not for the easily offended.";
|
||||||
logo = "http://soma.fm/img/xmasinfrisco120.jpg";
|
logo = "http://soma.fm/img/xmasinfrisco120.jpg";
|
||||||
station = soma-fm-name "Xmas in Frisko";
|
station = soma-fm-name "Xmas in Frisko";
|
||||||
stream = soma-fm "xmasinfrisko";
|
stream = soma-fm "xmasinfrisko";
|
||||||
tags = [tags.xmas];
|
tags = [tags.soma tags.xmas];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Chilled holiday grooves and classic winter lounge tracks. (Kid and Parent safe!)";
|
desc = "Chilled holiday grooves and classic winter lounge tracks. (Kid and Parent safe!)";
|
||||||
logo = "http://soma.fm/img/christmaslounge120.png";
|
logo = "http://soma.fm/img/christmaslounge120.png";
|
||||||
station = soma-fm-name "Christmas Lounge";
|
station = soma-fm-name "Christmas Lounge";
|
||||||
stream = soma-fm "christmas";
|
stream = soma-fm "christmas";
|
||||||
tags = [tags.xmas];
|
tags = [tags.soma tags.xmas];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Have your self an indie/alternative holiday season!";
|
desc = "Have your self an indie/alternative holiday season!";
|
||||||
logo = "http://soma.fm/img/xmasrocks120.png";
|
logo = "http://soma.fm/img/xmasrocks120.png";
|
||||||
station = soma-fm-name "Christmas Rocks!";
|
station = soma-fm-name "Christmas Rocks!";
|
||||||
stream = soma-fm "xmasrocks";
|
stream = soma-fm "xmasrocks";
|
||||||
tags = [tags.xmas tags.rock];
|
tags = [tags.soma tags.xmas tags.rock];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Where we cut right to the soul of the season.";
|
desc = "Where we cut right to the soul of the season.";
|
||||||
logo = "http://soma.fm/img/jollysoul120.png";
|
logo = "http://soma.fm/img/jollysoul120.png";
|
||||||
station = soma-fm-name "Jolly Ol' Soul";
|
station = soma-fm-name "Jolly Ol' Soul";
|
||||||
stream = soma-fm "jollysoul";
|
stream = soma-fm "jollysoul";
|
||||||
tags = [tags.xmas tags.groovy];
|
tags = [tags.soma tags.xmas tags.groovy];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Department Store Christmas (extended through Jan 31)";
|
desc = "Department Store Christmas (extended through Jan 31)";
|
||||||
logo = "http://soma.fm/img/SomaFMDJSquare120.jpg";
|
logo = "http://soma.fm/img/SomaFMDJSquare120.jpg";
|
||||||
station = soma-fm-name "SomaFM Specials";
|
station = soma-fm-name "SomaFM Specials";
|
||||||
stream = soma-fm "specials";
|
stream = soma-fm "specials";
|
||||||
tags = [tags.discover];
|
tags = [tags.soma tags.discover];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "HandsUp / Dance";
|
desc = "HandsUp / Dance";
|
||||||
|
|||||||
@@ -7,9 +7,8 @@
|
|||||||
stateLocation = "/var/lib/codimd/state.sqlite";
|
stateLocation = "/var/lib/codimd/state.sqlite";
|
||||||
nixpkgs-unstable = import <nixpkgs-unstable> {};
|
nixpkgs-unstable = import <nixpkgs-unstable> {};
|
||||||
domain = "pad.kmein.de";
|
domain = "pad.kmein.de";
|
||||||
|
inherit (import <niveum/lib>) tmpfilesConfig;
|
||||||
in {
|
in {
|
||||||
imports = [<stockholm/krebs/3modules/permown.nix>];
|
|
||||||
|
|
||||||
services.nginx.virtualHosts.${domain} = {
|
services.nginx.virtualHosts.${domain} = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
@@ -49,11 +48,15 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
krebs.permown.${backupLocation} = {
|
systemd.tmpfiles.rules = [
|
||||||
owner = "codimd";
|
(tmpfilesConfig {
|
||||||
group = "codimd";
|
user = "codimd";
|
||||||
umask = "0002";
|
group = "codimd";
|
||||||
};
|
mode = "0755";
|
||||||
|
type = "d";
|
||||||
|
path = backupLocation;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
systemd.services.hedgedoc-backup = {
|
systemd.services.hedgedoc-backup = {
|
||||||
description = "Hedgedoc backup service";
|
description = "Hedgedoc backup service";
|
||||||
|
|||||||
@@ -238,16 +238,6 @@ in {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
|
||||||
job_name = "tahina";
|
|
||||||
static_configs = [
|
|
||||||
{
|
|
||||||
targets = [
|
|
||||||
"tahina.r:${toString config.services.prometheus.exporters.node.port}"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.prometheus.exporters.blackbox = {
|
services.prometheus.exporters.blackbox = {
|
||||||
|
|||||||
@@ -143,6 +143,11 @@ in {
|
|||||||
tags = ["nick_gitlab"];
|
tags = ["nick_gitlab"];
|
||||||
regex = "*";
|
regex = "*";
|
||||||
};
|
};
|
||||||
|
people = {
|
||||||
|
buffer = "irc.*.*";
|
||||||
|
tags = map (name: "nick_${name}") ["mod_p[matrix-fli"];
|
||||||
|
regex = "*";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
extraCommands = ''/matrix connect nibbana'';
|
extraCommands = ''/matrix connect nibbana'';
|
||||||
|
|||||||
@@ -26,14 +26,15 @@
|
|||||||
extraModulePackages = [];
|
extraModulePackages = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems = {
|
||||||
device = "/dev/disk/by-uuid/e9a8bd34-61eb-4317-888d-bd7d6248a906";
|
"/" = {
|
||||||
fsType = "xfs";
|
device = "/dev/disk/by-uuid/e9a8bd34-61eb-4317-888d-bd7d6248a906";
|
||||||
};
|
fsType = "xfs";
|
||||||
|
};
|
||||||
fileSystems."/boot" = {
|
"/boot" = {
|
||||||
device = "/dev/disk/by-uuid/9B2F-31E1";
|
device = "/dev/disk/by-uuid/9B2F-31E1";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ in {
|
|||||||
./pulseaudio.nix
|
./pulseaudio.nix
|
||||||
./home-assistant.nix
|
./home-assistant.nix
|
||||||
./tuna.nix
|
./tuna.nix
|
||||||
|
./mympd.nix
|
||||||
./grocy.nix
|
./grocy.nix
|
||||||
./spotifyd.nix
|
./spotifyd.nix
|
||||||
<home-manager/nixos>
|
<home-manager/nixos>
|
||||||
|
|||||||
57
systems/zaatar/mympd.nix
Normal file
57
systems/zaatar/mympd.nix
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{pkgs, ...}: let
|
||||||
|
inherit (import <niveum/lib>) tmpfilesConfig;
|
||||||
|
in {
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
(tmpfilesConfig {
|
||||||
|
type = "d";
|
||||||
|
mode = "0755";
|
||||||
|
user = "mympd";
|
||||||
|
group = "mympd";
|
||||||
|
path = "/var/lib/mympd";
|
||||||
|
})
|
||||||
|
(tmpfilesConfig {
|
||||||
|
type = "d";
|
||||||
|
mode = "0755";
|
||||||
|
user = "mympd";
|
||||||
|
group = "mympd";
|
||||||
|
age = "1d";
|
||||||
|
path = "/var/cache/mympd";
|
||||||
|
})
|
||||||
|
(tmpfilesConfig {
|
||||||
|
type = "L+";
|
||||||
|
mode = "0644";
|
||||||
|
user = "mympd";
|
||||||
|
group = "mympd";
|
||||||
|
path = "/var/lib/mympd/config/http_port";
|
||||||
|
argument = pkgs.writeText "port" "8764";
|
||||||
|
})
|
||||||
|
(tmpfilesConfig {
|
||||||
|
type = "L+";
|
||||||
|
mode = "0644";
|
||||||
|
user = "mympd";
|
||||||
|
group = "mympd";
|
||||||
|
path = "/var/lib/mympd/config/ssl";
|
||||||
|
argument = pkgs.writeText "ssl" "false";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
users.users.mympd = {
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "mympd";
|
||||||
|
};
|
||||||
|
users.groups.mympd = {};
|
||||||
|
|
||||||
|
systemd.services.mympd = {
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
|
after = ["mpd.service"];
|
||||||
|
script = "${pkgs.mympd}/bin/mympd";
|
||||||
|
environment = {
|
||||||
|
MYMPD_HTTP_PORT = "8764";
|
||||||
|
};
|
||||||
|
serviceConfig = {
|
||||||
|
Restart = "always";
|
||||||
|
User = "mympd";
|
||||||
|
Group = "mympd";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
firewall = (import <niveum/lib>).firewall lib;
|
firewall = (import <niveum/lib>).firewall lib;
|
||||||
|
inherit (import <niveum/lib>) tmpfilesConfig;
|
||||||
|
|
||||||
streams = import <niveum/lib/streams.nix> {
|
streams = import <niveum/lib/streams.nix> {
|
||||||
di-fm-key = lib.strings.fileContents <secrets/di.fm/key>;
|
di-fm-key = lib.strings.fileContents <secrets/di.fm/key>;
|
||||||
@@ -71,22 +72,31 @@ in {
|
|||||||
extraStopCommands = firewall.removeRules rules;
|
extraStopCommands = firewall.removeRules rules;
|
||||||
};
|
};
|
||||||
|
|
||||||
system.activationScripts.mpd-playlists = let
|
systemd.tmpfiles.rules = let
|
||||||
makePlaylist = name: streams: pkgs.writeText "name.m3u" (lib.concatMapStringsSep "\n" (lib.getAttr "stream") streams);
|
|
||||||
tags = lib.lists.unique (lib.concatMap ({tags ? [], ...}: tags) streams);
|
tags = lib.lists.unique (lib.concatMap ({tags ? [], ...}: tags) streams);
|
||||||
in ''
|
tagStreams = tag: lib.filter ({tags ? [], ...}: lib.elem tag tags) streams;
|
||||||
rm -rf /var/lib/mpd/playlists
|
makePlaylist = name: streams: pkgs.writeText "${name}.m3u" (lib.concatMapStringsSep "\n" (lib.getAttr "stream") streams);
|
||||||
install -d /var/lib/mpd/playlists
|
in
|
||||||
ln -sfn "${toString (makePlaylist "all" streams)}" "/var/lib/mpd/playlists/all.m3u"
|
map (tag:
|
||||||
${lib.concatMapStringsSep "\n" (
|
tmpfilesConfig {
|
||||||
tag: let
|
type = "L+";
|
||||||
playlistStreams = lib.filter ({tags ? [], ...}: lib.elem tag tags) streams;
|
path = "/var/lib/mpd/playlists/${tag}.m3u";
|
||||||
in ''
|
mode = "0644";
|
||||||
ln -sfn "${toString (makePlaylist tag playlistStreams)}" "/var/lib/mpd/playlists/${tag}.m3u"
|
user = "mpd";
|
||||||
''
|
group = "mpd";
|
||||||
)
|
argument = makePlaylist tag (tagStreams tag);
|
||||||
tags}
|
})
|
||||||
'';
|
tags
|
||||||
|
++ [
|
||||||
|
(tmpfilesConfig {
|
||||||
|
type = "L+";
|
||||||
|
mode = "0644";
|
||||||
|
user = "mpd";
|
||||||
|
group = "mpd";
|
||||||
|
path = "/var/lib/mpd/playlist/all.m3u";
|
||||||
|
argument = makePlaylist "all" streams;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
services.tuna = {
|
services.tuna = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user