From f06d3ee839e949cbb1bdb6e07f9ba8a27921177e Mon Sep 17 00:00:00 2001 From: Inex Code Date: Sat, 30 Dec 2023 13:54:41 +0300 Subject: [PATCH] style: format --- selfprivacy_api/migrations/migrate_to_flakes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfprivacy_api/migrations/migrate_to_flakes.py b/selfprivacy_api/migrations/migrate_to_flakes.py index e12eb1a..cee2676 100644 --- a/selfprivacy_api/migrations/migrate_to_flakes.py +++ b/selfprivacy_api/migrations/migrate_to_flakes.py @@ -110,7 +110,9 @@ class MigrateToFlakes(Migration): if os.path.exists("/etc/nixos.pre-flakes/networking.nix"): print("Transforming networking.nix to /etc/nixos/deployment.nix") deployment_contents = '{ lib, ... }: {\n system.stateVersion = lib.mkDefault "23.11";\n nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";\n' - with open("/etc/nixos.pre-flakes/networking.nix", "r") as networking_file: + with open( + "/etc/nixos.pre-flakes/networking.nix", "r" + ) as networking_file: networking_contents = networking_file.read().splitlines(True)[1:] deployment_contents += "\n" + "".join(networking_contents) with open("/etc/nixos/deployment.nix", "w") as file: