mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat: update to 22.11
This commit is contained in:
18
.bin/ttrss-unread
Executable file
18
.bin/ttrss-unread
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#/usr/bin/env -S deno run -A:q
|
||||||
|
set -x
|
||||||
|
session_cache="$HOME/.cache/tt-rss.session"
|
||||||
|
ttrss_endpoint=https://feed.kmein.de/api/
|
||||||
|
ttrss_user=k
|
||||||
|
ttrss_password=$(pass shared/tt-rss/password)
|
||||||
|
|
||||||
|
login() {
|
||||||
|
if [ -f "$session_cache" ]; then
|
||||||
|
session_id="$(cat "$session_cache")"
|
||||||
|
else
|
||||||
|
session_id="$(curl -d '{"op":"login","user":"'"$ttrss_user"'","password":"'"$ttrss_password"'"}' "$ttrss_endpoint" | jq -r .content.session_id)"
|
||||||
|
echo "$session_id" > "$session_cache"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
login
|
||||||
|
curl -d '{"sid":"'"$session_id"'","op":"getUnread"}' "$ttrss_endpoint" | jq .content
|
||||||
48
flake.lock
generated
48
flake.lock
generated
@@ -23,11 +23,11 @@
|
|||||||
"utils": "utils"
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1669510155,
|
"lastModified": 1669825171,
|
||||||
"narHash": "sha256-PS2WdRXujfxH9PuH0w8aRmrEQ+Toz3RqGlp0mXQRGio=",
|
"narHash": "sha256-HxlZHSiRGXnWAFbIJMeujqBe2KgACYx5XDRY0EA9P+4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "e999dfe7cba2e1fd59ab135e7496545bd4f82b76",
|
"rev": "478610aa37c8339eacabfa03f07dacf5574edd47",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -95,11 +95,11 @@
|
|||||||
"nix-writers": {
|
"nix-writers": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1554228333,
|
"lastModified": 1669756621,
|
||||||
"narHash": "sha256-hG/PlcCvCQhNcU55NpHfATkyH9k6cZmO7uvBoJjasXU=",
|
"narHash": "sha256-Scg3pf+igUXt/YTO8kxQLBmBqCgGPVt/16DFC8YuA2g=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "c528cf970e292790b414b4c1c8c8e9d7e73b2a71",
|
"rev": "f65c77bdcc58be2081a0ffbda849289c5191b5e8",
|
||||||
"revCount": 32,
|
"revCount": 33,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://cgit.krebsco.de/nix-writers"
|
"url": "https://cgit.krebsco.de/nix-writers"
|
||||||
},
|
},
|
||||||
@@ -110,27 +110,27 @@
|
|||||||
},
|
},
|
||||||
"nixos-stable": {
|
"nixos-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1669418739,
|
"lastModified": 1669834992,
|
||||||
"narHash": "sha256-T86oFvcUIRwHWBWUt7WjaP4BP/3lDGbv5AppQSI1FkI=",
|
"narHash": "sha256-YnhZGHgb4C3Q7DSGisO/stc50jFb9F/MzHeKS4giotg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "695b3515251873e0a7e2021add4bba643c56cde3",
|
"rev": "596a8e828c5dfa504f91918d0fa4152db3ab5502",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-22.05",
|
"ref": "nixos-22.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixos-unstable": {
|
"nixos-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1669411043,
|
"lastModified": 1669542132,
|
||||||
"narHash": "sha256-LfPd3+EY+jaIHTRIEOUtHXuanxm59YKgUacmSzaqMLc=",
|
"narHash": "sha256-DRlg++NJAwPh8io3ExBJdNW7Djs3plVI5jgYQ+iXAZQ=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5dc7114b7b256d217fe7752f1614be2514e61bb8",
|
"rev": "a115bb9bd56831941be3776c8a94005867f316a7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -143,11 +143,11 @@
|
|||||||
"recht": {
|
"recht": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1664353498,
|
"lastModified": 1669719044,
|
||||||
"narHash": "sha256-s1MUaSOkyoAMarB4a1DgMsfVhmhAsLIjtyeT+ZCxOEE=",
|
"narHash": "sha256-WsLWlTM2Hrurj9kVajybIOavV9QPYiJweMCOQR6h+YI=",
|
||||||
"owner": "kmein",
|
"owner": "kmein",
|
||||||
"repo": "recht",
|
"repo": "recht",
|
||||||
"rev": "dc2cb407052a53965e6678fd84f0d887f887c11c",
|
"rev": "7c15b13328fb5cee01012c488ff235ee730cac70",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -159,11 +159,11 @@
|
|||||||
"retiolum": {
|
"retiolum": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1669363981,
|
"lastModified": 1669747977,
|
||||||
"narHash": "sha256-MkcI5WZ1VGmXR9LsX9oTJJLSF36L871lX25jT0Ruklw=",
|
"narHash": "sha256-Z2hlu8wMZK7oiVCKQEOV4pGZMgZNzIk8KKWEki/gNC0=",
|
||||||
"owner": "krebs",
|
"owner": "krebs",
|
||||||
"repo": "retiolum",
|
"repo": "retiolum",
|
||||||
"rev": "a805971ef7e25d2cc1ce8a062e5f72617880402a",
|
"rev": "c6ba5338fe4edc1173a0b0245c7e536d83145475",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -211,11 +211,11 @@
|
|||||||
"stockholm": {
|
"stockholm": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1669306514,
|
"lastModified": 1669756706,
|
||||||
"narHash": "sha256-bHhys4UdNC2rvg8RHL3BHR5uXv1Z0jxcQb/V7Wavhfk=",
|
"narHash": "sha256-M4Aj6NoYvS6u/52U+cM4yWdpnbdJQ4k1d4u0yrCUY8Y=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "dae12b6893a1d28e8bcb1fe3fb9ee8757bbfbed4",
|
"rev": "81b5682c5ff1e36613f844a874e09b897ee13d3e",
|
||||||
"revCount": 10963,
|
"revCount": 10973,
|
||||||
"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 = {
|
||||||
nixos-stable.url = "github:NixOS/nixpkgs/nixos-22.05";
|
nixos-stable.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||||
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|||||||
@@ -10,10 +10,8 @@ in {
|
|||||||
./gitea.nix
|
./gitea.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./hedgedoc.nix
|
./hedgedoc.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
|
||||||
|
|||||||
@@ -4,10 +4,12 @@ let
|
|||||||
in {
|
in {
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
disableRegistration = true;
|
|
||||||
rootUrl = domain;
|
rootUrl = domain;
|
||||||
appName = "code.kmein.de";
|
appName = "code.kmein.de";
|
||||||
ssh.clonePort = sshPort;
|
settings = {
|
||||||
|
server.SSH_PORT = sshPort;
|
||||||
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."code.kmein.de" = {
|
services.nginx.virtualHosts."code.kmein.de" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ in {
|
|||||||
|
|
||||||
services.hedgedoc = {
|
services.hedgedoc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configuration = {
|
settings = {
|
||||||
allowOrigin = [domain];
|
allowOrigin = [domain];
|
||||||
allowAnonymous = true;
|
allowAnonymous = true;
|
||||||
allowGravatar = false;
|
allowGravatar = false;
|
||||||
|
|||||||
@@ -4,7 +4,13 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
backend = pkgs.callPackage <menstruation-backend> {};
|
backend = pkgs.callPackage <menstruation-backend> {};
|
||||||
telegram = pkgs.callPackage <menstruation-telegram> {};
|
old-pkgs = import (pkgs.fetchFromGitHub {
|
||||||
|
owner = "NixOs";
|
||||||
|
repo = "nixpkgs";
|
||||||
|
rev = "695b3515251873e0a7e2021add4bba643c56cde3";
|
||||||
|
hash = "sha256-T86oFvcUIRwHWBWUt7WjaP4BP/3lDGbv5AppQSI1FkI=";
|
||||||
|
}) {};
|
||||||
|
telegram = old-pkgs.poetry2nix.mkPoetryApplication {projectDir = <menstruation-telegram>;};
|
||||||
backendPort = 8000;
|
backendPort = 8000;
|
||||||
in {
|
in {
|
||||||
services.redis.servers.menstruation = {
|
services.redis.servers.menstruation = {
|
||||||
|
|||||||
@@ -10,9 +10,11 @@
|
|||||||
in {
|
in {
|
||||||
services.grafana = {
|
services.grafana = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "grafana.kmein.r";
|
settings.server = {
|
||||||
port = 9444;
|
domain = "grafana.kmein.r";
|
||||||
addr = "127.0.0.1";
|
http_port = 9444;
|
||||||
|
http_addr = "127.0.0.1";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts.${config.services.grafana.domain} = {
|
services.nginx.virtualHosts.${config.services.grafana.domain} = {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ in {
|
|||||||
<niveum/configs/printing.nix>
|
<niveum/configs/printing.nix>
|
||||||
<niveum/configs/spacetime.nix>
|
<niveum/configs/spacetime.nix>
|
||||||
<niveum/configs/sshd.nix>
|
<niveum/configs/sshd.nix>
|
||||||
<niveum/configs/traadfri.nix>
|
# <niveum/configs/traadfri.nix>
|
||||||
<niveum/configs/tmux.nix>
|
<niveum/configs/tmux.nix>
|
||||||
<niveum/configs/wpa_supplicant.nix>
|
<niveum/configs/wpa_supplicant.nix>
|
||||||
<niveum/modules/retiolum.nix>
|
<niveum/modules/retiolum.nix>
|
||||||
|
|||||||
Reference in New Issue
Block a user