Update NixOS
parent
0e45e84a8c
commit
d4c64b15c8
|
@ -12,7 +12,7 @@ current_channel = open("channel_url.txt", "r").read().strip()
|
||||||
class Channel(Resource):
|
class Channel(Resource):
|
||||||
def get(self):
|
def get(self):
|
||||||
"""GET request returns the 301 redirect to the
|
"""GET request returns the 301 redirect to the
|
||||||
current validated NixOS channel
|
current validated NixOS channel
|
||||||
"""
|
"""
|
||||||
return redirect(current_channel, code=301)
|
return redirect(current_channel, code=301)
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ class Channel(Resource):
|
||||||
|
|
||||||
class GetNewChannel(Resource):
|
class GetNewChannel(Resource):
|
||||||
def post(self):
|
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
|
channel = r.url
|
||||||
# Save the new channel to file
|
# Save the new channel to file
|
||||||
with open("channel_url.txt", "w") as f:
|
with open("channel_url.txt", "w") as f:
|
||||||
|
|
Loading…
Reference in New Issue