From 3972414281c9f72ba1933a0e5f768fd9af8fa2f4 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Thu, 2 Jun 2022 02:16:36 +0200 Subject: [PATCH] laptop: update to 22.05 --- machines/laptop.nix | 2 +- profiles/xsession/polybar.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/machines/laptop.nix b/machines/laptop.nix index ac40b16..10fc1ab 100644 --- a/machines/laptop.nix +++ b/machines/laptop.nix @@ -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"; }; } diff --git a/profiles/xsession/polybar.nix b/profiles/xsession/polybar.nix index b1618ad..ddd3f87 100644 --- a/profiles/xsession/polybar.nix +++ b/profiles/xsession/polybar.nix @@ -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")