From c2959e71b1562787899a65a1b689abe385f2d46f Mon Sep 17 00:00:00 2001 From: Windows Aurora <104532354+WindowsAurora@users.noreply.github.com> Date: Sun, 25 May 2025 14:49:25 +0000 Subject: [PATCH] Replace Nix with devcontainer --- .devcontainer/devcontainer.json | 22 ++++++++++++++++++++++ .github/dependabot.yml | 12 ++++++++++++ flake.lock | 27 --------------------------- flake.nix | 15 --------------- 4 files changed, 34 insertions(+), 42 deletions(-) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .github/dependabot.yml delete mode 100644 flake.lock delete mode 100644 flake.nix diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..8c6f3fb --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/python +{ + "name": "Python 3", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye" + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "pip3 install --user -r requirements.txt", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f33a02c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for more information: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +# https://containers.dev/guide/dependabot + +version: 2 +updates: + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: weekly diff --git a/flake.lock b/flake.lock deleted file mode 100644 index ad01f94..0000000 --- a/flake.lock +++ /dev/null @@ -1,27 +0,0 @@ -{ - "nodes": { - "nixpkgs": { - "locked": { - "lastModified": 1727540905, - "narHash": "sha256-40J9tW7Y794J7Uw4GwcAKlMxlX2xISBl6IBigo83ih8=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "fbca5e745367ae7632731639de5c21f29c8744ed", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-24.05", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "nixpkgs": "nixpkgs" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index 1c45e3d..0000000 --- a/flake.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ - description = "FMHY Filterlist Flake"; - - inputs = { - nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.05"; - }; - - outputs = { self, nixpkgs }: let - pkgs = nixpkgs.legacyPackages."x86_64-linux"; - in { - devShells."x86_64-linux".default = pkgs.mkShell { - packages = [ pkgs.python3 ]; - }; - }; -}