mirror of
https://github.com/kmein/niveum
synced 2026-03-24 21:51:06 +01:00
Compare commits
6 Commits
grimm
...
f41ddb654a
| Author | SHA1 | Date | |
|---|---|---|---|
| f41ddb654a | |||
| 41ecca8411 | |||
| a80f4d866a | |||
| f56e9aa37b | |||
| 822b0df4b8 | |||
| c16123dc8d |
2
ci.nix
2
ci.nix
@@ -56,7 +56,7 @@
|
|||||||
"spotify/password"
|
"spotify/password"
|
||||||
];
|
];
|
||||||
systemSecrets = let
|
systemSecrets = let
|
||||||
basic = ["retiolum.ed25519" "retiolum.key" "syncthing/cert.pem" "syncthing/key.pem"];
|
basic = ["retiolum.ed25519" "retiolum.key" "syncthing/cert.pem" "syncthing/key.pem" "ssh/passphrase"];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
zaatar = ensureFiles (["moodle.token" "telegram/moodle-dl.token" "mpd-web.key"] ++ basic);
|
zaatar = ensureFiles (["moodle.token" "telegram/moodle-dl.token" "mpd-web.key"] ++ basic);
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ in {
|
|||||||
names = ["Monospace" "Font Awesome 6 Free"];
|
names = ["Monospace" "Font Awesome 6 Free"];
|
||||||
size = 8.0;
|
size = 8.0;
|
||||||
};
|
};
|
||||||
mode = "hide"; # "dock"
|
mode = "dock"; # "hide";
|
||||||
position = "bottom";
|
position = "bottom";
|
||||||
colors = rec {
|
colors = rec {
|
||||||
background = colours.background;
|
background = colours.background;
|
||||||
|
|||||||
@@ -16,7 +16,22 @@
|
|||||||
password = lib.fileContents <secrets/nextcloud-fysi/password>;
|
password = lib.fileContents <secrets/nextcloud-fysi/password>;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = [pkgs.khal pkgs.vdirsyncer pkgs.khard pkgs.todoman];
|
environment.systemPackages = [
|
||||||
|
pkgs.khal
|
||||||
|
pkgs.vdirsyncer
|
||||||
|
pkgs.khard
|
||||||
|
pkgs.todoman
|
||||||
|
(pkgs.writers.writeDashBin "todo-procrastinate" ''
|
||||||
|
[ $# -eq 1 ] || {
|
||||||
|
echo "Usage: $0 TODO_ID" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
todo_id=$1
|
||||||
|
new_timestamp=$(${pkgs.todoman}/bin/todo --porcelain show "$todo_id" | ${pkgs.jq}/bin/jq '.due + 24 * 60 * 60')
|
||||||
|
new_date=$(${pkgs.coreutils}/bin/date +"%Y-%m-%d %H:%M" -d "@$new_timestamp")
|
||||||
|
${pkgs.todoman}/bin/todo edit "$todo_id" --due "$new_date"
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
|
||||||
systemd.user.services.vdirsyncer = {
|
systemd.user.services.vdirsyncer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
inherit (import <niveum/lib>) sshPort kieran;
|
inherit (import <niveum/lib>) sshPort kieran;
|
||||||
externalNetwork = import <niveum/lib/external-network.nix>;
|
externalNetwork = import <niveum/lib/external-network.nix>;
|
||||||
sshIdentity = name: "${config.users.users.me.home}/.ssh/${name}";
|
sshIdentity = name: "${config.users.users.me.home}/.ssh/${name}";
|
||||||
ssh-passphease = lib.strings.fileContents <system-secrets/ssh/passphrase>;
|
ssh-passphrase = lib.strings.fileContents <system-secrets/ssh/passphrase>;
|
||||||
in {
|
in {
|
||||||
services.xserver.displayManager.sessionCommands = toString (pkgs.writeScript "ssh-add" ''
|
services.xserver.displayManager.sessionCommands = toString (pkgs.writeScript "ssh-add" ''
|
||||||
#!${pkgs.expect}/bin/expect -f
|
#!${pkgs.expect}/bin/expect -f
|
||||||
|
|||||||
12
flake.lock
generated
12
flake.lock
generated
@@ -23,11 +23,11 @@
|
|||||||
"utils": "utils"
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1661573386,
|
"lastModified": 1662759269,
|
||||||
"narHash": "sha256-pBEg8iY00Af/SAtU2dlmOAv+2x7kScaGlFRDjNoVJO8=",
|
"narHash": "sha256-lt8bAfEZudCQb+MxoNKmenhMTXhu3RCCyLYxU9t5FFk=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "d89bdff445eadff03fe414e9c30486bc8166b72b",
|
"rev": "9f7fe353b613d0e45d7a5cdbd1f13c96c15803dd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -110,11 +110,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-stable": {
|
"nixos-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1661520432,
|
"lastModified": 1662739455,
|
||||||
"narHash": "sha256-9z+WDeXiu3hobvSsL0SbHDx4s+kFmm8eussySuX4zCM=",
|
"narHash": "sha256-nfUkPoIIhSXZFxvN2TU7LL7k5CbC1iuSaSkLGgViMvE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f11e12ac6af528c1ba12426ce83cee26f21ceafd",
|
"rev": "45b56b5321aed52d4464dc9af94dc1b20d477ac5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ in {
|
|||||||
./monitoring
|
./monitoring
|
||||||
./moodle-dl-borsfaye.nix
|
./moodle-dl-borsfaye.nix
|
||||||
./names.nix
|
./names.nix
|
||||||
./grimm.nix
|
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./radio-news.nix
|
./radio-news.nix
|
||||||
./radio.nix
|
./radio.nix
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
{pkgs, ...}: let
|
|
||||||
port = 9610;
|
|
||||||
web-socket-sink-src = "${<scripts>}/grimm-scroller";
|
|
||||||
web-socket-sink = pkgs.callPackage web-socket-sink-src {};
|
|
||||||
lemmata = "${web-socket-sink-src}/dwb-compact.json";
|
|
||||||
in {
|
|
||||||
systemd.services.grimm-ws = {
|
|
||||||
wantedBy = ["multi-user.target"];
|
|
||||||
script = "${web-socket-sink}/bin/web-socket-sink --host 0.0.0.0 --port ${toString port} < ${lemmata}";
|
|
||||||
serviceConfig = {
|
|
||||||
Restart = "always";
|
|
||||||
DynamicUser = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.nginx.virtualHosts."grimm.kmein.de" = {
|
|
||||||
enableACME = false;
|
|
||||||
forceSSL = false;
|
|
||||||
locations = {
|
|
||||||
"/".root = pkgs.linkFarm "grimm" [
|
|
||||||
{
|
|
||||||
name = "index.html";
|
|
||||||
path = "${web-socket-sink-src}/wclient.html";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [port];
|
|
||||||
}
|
|
||||||
@@ -104,6 +104,9 @@ in {
|
|||||||
addresses = "news.r";
|
addresses = "news.r";
|
||||||
autojoin = ["#cook" "#drachengame" "#oepnv" "#kmeinung" "#memes"];
|
autojoin = ["#cook" "#drachengame" "#oepnv" "#kmeinung" "#memes"];
|
||||||
command = "/oper aids balls";
|
command = "/oper aids balls";
|
||||||
|
sasl_mechanism = "plain";
|
||||||
|
sasl_username = nick;
|
||||||
|
sasl_password = nick + nick;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user