From 096cb7610366e49f7753ad17075ac889e42be833 Mon Sep 17 00:00:00 2001 From: inexcode Date: Fri, 26 Aug 2022 13:53:11 +0400 Subject: [PATCH] Update NixOS --- app.py | 4 ++-- channel_url.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index a44a0e1..d965d3a 100644 --- a/app.py +++ b/app.py @@ -12,7 +12,7 @@ current_channel = open("/var/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) @@ -34,7 +34,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("/var/channel_url.txt", "w") as f: diff --git a/channel_url.txt b/channel_url.txt index 06d62e0..b34571b 100644 --- a/channel_url.txt +++ b/channel_url.txt @@ -1 +1 @@ -https://nixos.org/channels/nixos-21.11 \ No newline at end of file +https://nixos.org/channels/nixos-22.05