Update NixOS

master
inexcode 2022-08-26 13:49:00 +04:00
parent 0e45e84a8c
commit d4c64b15c8
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ current_channel = open("channel_url.txt", "r").read().strip()
class Channel(Resource):
def get(self):
"""GET request returns the 301 redirect to the
current validated NixOS channel
current validated NixOS channel
"""
return redirect(current_channel, code=301)
@ -33,7 +33,7 @@ class Channel(Resource):
class GetNewChannel(Resource):
def post(self):
r = requests.get("https://nixos.org/channels/nixos-21.11")
r = requests.get("https://nixos.org/channels/nixos-22.05")
channel = r.url
# Save the new channel to file
with open("channel_url.txt", "w") as f: