laptop: update to 22.05

This commit is contained in:
Daniel Lovbrotte Olsen 2022-06-02 02:16:36 +02:00
parent 8120e9088f
commit 3972414281
2 changed files with 3 additions and 3 deletions

View File

@ -22,6 +22,6 @@
programs.home-manager = {
enable = true;
path = "https://github.com/rycee/home-manager/archive/release-21.11.tar.gz";
path = "https://github.com/rycee/home-manager/archive/release-22.05.tar.gz";
};
}

View File

@ -192,7 +192,7 @@ in
"module/minecraft" = {
type = "custom/script";
exec = "" + pkgs.writers.writePython3 "minecraft_status" { libraries = [ pkgs.python3.pkgs.mcstatus ]; flakeIgnore = [ "E722" ]; } ''
from mcstatus import MinecraftServer as JavaServer
from mcstatus import JavaServer
pvv = JavaServer.lookup("minecraft.pvv.ntnu.no")
dods = JavaServer.lookup("mc.dodsorf.as")
@ -222,7 +222,7 @@ in
print(result)
'';
click-left = "" + pkgs.writers.writePython3 "minecraft_status" { libraries = with pkgs.python3.pkgs; [ mcstatus notify2 ]; flakeIgnore = [ "E722" ]; } ''
from mcstatus import MinecraftServer as JavaServer
from mcstatus import JavaServer
import notify2
pvv = JavaServer.lookup("minecraft.pvv.ntnu.no")