mirror of
https://github.com/kmein/niveum
synced 2026-03-22 21:01:07 +01:00
Compare commits
6 Commits
80143fee87
...
5b76c1439f
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b76c1439f | |||
| 3e684ae24a | |||
| 83afa6174a | |||
| 0d483bfc0c | |||
| dea9c3f0ed | |||
| f8b452901f |
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"url": "https://github.com/NixOS/nixpkgs.git",
|
||||
"rev": "d395190b24b27a65588f4539c423d9807ad8d4e7",
|
||||
"date": "2021-03-24T17:35:36-06:00",
|
||||
"path": "/nix/store/gdzjw6k680vcilvnpdhv93qxkzkl05qy-nixpkgs",
|
||||
"sha256": "0r1kj8gf97z9ydh36vmgrar1q4l9ggaqiygxjvp8jmr1948y0nh2",
|
||||
"rev": "91b77fe6942fe999b1efbe906dc98024d1917c0d",
|
||||
"date": "2021-04-04T14:18:31+01:00",
|
||||
"path": "/nix/store/nkk1rf9is57avm67rcw2abl7j2c8h8hz-nixpkgs",
|
||||
"sha256": "041l46ccllbf9b94jxahw64zsjxs1368y4m5a5q2h41w82jjmdk1",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"url": "https://github.com/krebs/retiolum",
|
||||
"rev": "d53f785c9237810e976554a509093ce8c58ff483",
|
||||
"date": "2021-03-22T03:02:16+01:00",
|
||||
"path": "/nix/store/4w2pk0lr86li1lb5zhlmal94c15xgx5v-retiolum",
|
||||
"sha256": "0kczrr6dr5dmhx2kbanw46w6ig2v3w42rqhjanv87xhwkgw81l08",
|
||||
"rev": "be946126421be43111b388872258fc875da928ef",
|
||||
"date": "2021-03-28T18:02:14+02:00",
|
||||
"path": "/nix/store/ff1blb0hhnz2ah9la4hx24167mmgvlxd-retiolum",
|
||||
"sha256": "0qa1zz9jksy8a392k96rm69288dz9j3zw7vw71rycmhwhvp9dhgz",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
|
||||
@@ -72,6 +72,8 @@ in {
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
};
|
||||
|
||||
home-manager.users.me.xdg.enable = true;
|
||||
}
|
||||
{
|
||||
sound.enable = true;
|
||||
@@ -229,6 +231,7 @@ in {
|
||||
./packages
|
||||
./power-action.nix
|
||||
./printing.nix
|
||||
./openweathermap.nix
|
||||
./wallpaper.nix
|
||||
./redshift.nix
|
||||
./retiolum.nix
|
||||
|
||||
@@ -50,7 +50,7 @@ in
|
||||
|
||||
services.syncthing = let moodle-dl-directory = config.services.moodle-dl.directory; in {
|
||||
enable = true;
|
||||
user = "moodle"; # config.users.extraUsers.moodle.name;
|
||||
user = "moodle-dl"; # config.users.extraUsers.moodle.name;
|
||||
openDefaultPorts = true;
|
||||
configDir = "${moodle-dl-directory}/.config/syncthing";
|
||||
dataDir = "${moodle-dl-directory}/.config/syncthing";
|
||||
|
||||
19
configs/openweathermap.nix
Normal file
19
configs/openweathermap.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
openweathermap-repo = pkgs.fetchFromGitHub {
|
||||
owner = "ip1981";
|
||||
repo = "openweathermap";
|
||||
rev = "9cfef7b14ac5af7109449b54b1cb352b4c76167a";
|
||||
sha256 = "0sm43wicvw2fy7nq65s8vch6jjb5bszqr4ilnhibayamj4jcpw53";
|
||||
};
|
||||
openweathermap = pkgs.haskellPackages.callCabal2nix "openweathermap" openweathermap-repo {};
|
||||
openweathermap-key = lib.strings.fileContents <secrets/openweathermap.key>;
|
||||
in {
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
weather = pkgs.writers.writeDashBin "weather" ''
|
||||
${openweathermap}/bin/openweathermap --api-key ${openweathermap-key} "$@"
|
||||
'';
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.weather ];
|
||||
}
|
||||
@@ -66,6 +66,7 @@ in {
|
||||
haskellPackages.pandoc-citeproc
|
||||
nur.repos.kmein.text2pdf
|
||||
lowdown
|
||||
glow # markdown to term
|
||||
libreoffice
|
||||
# gnumeric
|
||||
dia
|
||||
|
||||
@@ -71,9 +71,26 @@ in {
|
||||
volume_full = "🔊 ";
|
||||
volume_half = "🔉 ";
|
||||
volume_muted = "🔇";
|
||||
weather_sun = "🌣";
|
||||
weather_clouds = "🌥";
|
||||
weather_rain = "🌧";
|
||||
weather_snow = "🌨";
|
||||
weather_default = "🌡";
|
||||
weather_thunder = "🌩";
|
||||
};
|
||||
};
|
||||
block = [
|
||||
{
|
||||
block = "weather";
|
||||
autolocate = true;
|
||||
format = "{location}: {temp}°C";
|
||||
service = {
|
||||
name = "openweathermap";
|
||||
api_key = lib.strings.fileContents <secrets/openweathermap.key>;
|
||||
city_id = "2950159";
|
||||
units = "metric";
|
||||
};
|
||||
}
|
||||
{
|
||||
block = "custom";
|
||||
interval = 20;
|
||||
|
||||
Reference in New Issue
Block a user