Update NixOS

master
inexcode 7 months ago
parent 0e45e84a8c
commit d4c64b15c8
  1. 4
      nix_channel_server/app.py

@ -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:

Loading…
Cancel
Save