feat: add flake services manager #113

Open
def wants to merge 9 commits from def/add_flake_service_manager into master
Collaborator
There is no content yet.
def self-assigned this 2024-05-17 04:24:43 +03:00
def added 1 commit 2024-05-17 04:24:43 +03:00
continuous-integration/drone/push Build is passing Details
1275ecabcd
feat: add flake service manager
def changed title from feat: add flake service manager to feat: add flake services manager 2024-05-17 04:25:00 +03:00
Poster
Collaborator

it generates file like this

image

it generates file like this ![image](/attachments/5d2c301a-a369-4112-9821-efabd4940d96)
100 KiB
def added 1 commit 2024-05-17 04:26:44 +03:00
continuous-integration/drone/push Build is passing Details
f64e8c05d9
fix: remove test case
Collaborator

Nix allows to convert its own code to JSON (if possible, e.g. there are no functions, etc):

$ nix eval --impure --expr "builtins.toJSON (import sp-modules/flake.nix).inputs"

Maybe it helps you.

Nix allows to convert its own code to JSON (if possible, e.g. there are no functions, etc): ``` $ nix eval --impure --expr "builtins.toJSON (import sp-modules/flake.nix).inputs" ``` Maybe it helps you.
def added 1 commit 2024-05-18 05:27:58 +03:00
continuous-integration/drone/push Build is passing Details
875f48b52d
feat: add read data from flake services file
def added 1 commit 2024-05-18 05:33:06 +03:00
continuous-integration/drone/push Build is passing Details
e21eacd4c9
feat: add type hints
def requested review from inex 2024-05-18 05:33:21 +03:00
def added 1 commit 2024-05-25 00:14:04 +03:00
continuous-integration/drone/push Build is failing Details
bbf8213622
tests: add tests for flake services manager
inex requested review from houkime 2024-05-25 12:19:08 +03:00
inex requested review from alexoundos 2024-05-25 12:19:08 +03:00
inex requested changes 2024-05-25 12:20:48 +03:00
@ -0,0 +45,4 @@
manager.services = services
with FlakeServiceManager() as manager:
assert manager.services == services

Also check the contents of the file itself, without using the context manager

Also check the contents of the file itself, without using the context manager
Poster
Collaborator

done

done
inex marked this conversation as resolved
@ -0,0 +68,4 @@
with FlakeServiceManager() as manager:
manager.services = services
with FlakeServiceManager() as manager:

Same as before, check if the file is actually modified

Same as before, check if the file is actually modified
inex marked this conversation as resolved
def added 1 commit 2024-05-26 14:25:53 +03:00
continuous-integration/drone/push Build is passing Details
6f2a0119fc
tests: add real file check
def requested review from inex 2024-05-26 14:26:46 +03:00
inex requested changes 2024-05-27 13:25:58 +03:00
@ -0,0 +1,67 @@
import re
from typing import Dict, Tuple, Optional

Dict is unused

`Dict` is unused
Poster
Collaborator

done

done
inex marked this conversation as resolved
@ -0,0 +2,4 @@
from selfprivacy_api.services.flake_service_manager import (
FlakeServiceManager,
FLAKE_CONFIG_PATH,

FLAKE_CONFIG_PATH is unused

`FLAKE_CONFIG_PATH` is unused
Poster
Collaborator

done

done
inex marked this conversation as resolved
def added 1 commit 2024-05-27 14:33:24 +03:00
continuous-integration/drone/push Build is passing Details
d52581e3a4
fix: remove unused imports
def requested review from inex 2024-05-27 14:33:56 +03:00
inex approved these changes 2024-05-29 15:33:41 +03:00
inex left a comment
Owner

Waiting for others approval.

Waiting for others approval.
Collaborator
# nix eval --raw --impure --expr "builtins.toJSON (import sp-modules/flake.nix).inputs" | jq
{
  "bitwarden": {
    "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/bitwarden"
  },
  "gitea": {
    "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/gitea"
  },
  "jitsi-meet": {
    "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/jitsi-meet"
  },
  "nextcloud": {
    "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/nextcloud"
  },
  "ocserv": {
    "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/ocserv"
  },
  "pleroma": {
    "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/pleroma"
  },
  "simple-nixos-mailserver": {
    "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/simple-nixos-mailserver"
  }
}
```json # nix eval --raw --impure --expr "builtins.toJSON (import sp-modules/flake.nix).inputs" | jq { "bitwarden": { "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/bitwarden" }, "gitea": { "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/gitea" }, "jitsi-meet": { "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/jitsi-meet" }, "nextcloud": { "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/nextcloud" }, "ocserv": { "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/ocserv" }, "pleroma": { "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/pleroma" }, "simple-nixos-mailserver": { "url": "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/simple-nixos-mailserver" } } ```
inex force-pushed def/add_flake_service_manager from d52581e3a4 to 958aaf111a 2024-05-29 16:07:25 +03:00 Compare
Collaborator

$ nix flake metadata --json /etc/nixos/sp-modules:

{
  "description": "SelfPrivacy NixOS PoC modules/extensions/bundles/packages/etc",
  "lastModified": 1716988040,
  "locked": {
    "lastModified": 1716988040,
    "narHash": "sha256-FCmoquet+7IoENp3K2FUtwR9HD5+y06vAwndx6nQu2Q=",
    "path": "/etc/nixos/sp-modules",
    "type": "path"
  },
  "locks": {
    "nodes": {
      "authelia-pr-nixpkgs": {
        "locked": {
          "lastModified": 1714310759,
          "narHash": "sha256-LRZq/A3ziJTtaSxHZzq4jbfyymza/o9qR2K1cfmw8QI=",
          "owner": "nicomem",
          "repo": "nixpkgs",
          "rev": "79afdfef87cd07f6024cc3f793c8956fffe21644",
          "type": "github"
        },
        "original": {
          "owner": "nicomem",
          "ref": "authelia-4.38",
          "repo": "nixpkgs",
          "type": "github"
        }
      },
      "bitwarden": {
        "locked": {
          "dir": "sp-modules/bitwarden",
          "lastModified": 1716580485,
          "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=",
          "ref": "flakes",
          "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb",
          "revCount": 275,
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/bitwarden"
        },
        "original": {
          "dir": "sp-modules/bitwarden",
          "ref": "flakes",
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/bitwarden"
        }
      },
      "blobs": {
        "flake": false,
        "locked": {
          "lastModified": 1604995301,
          "narHash": "sha256-wcLzgLec6SGJA8fx1OEN1yV/Py5b+U5iyYpksUY/yLw=",
          "owner": "simple-nixos-mailserver",
          "repo": "blobs",
          "rev": "2cccdf1ca48316f2cfd1c9a0017e8de5a7156265",
          "type": "gitlab"
        },
        "original": {
          "owner": "simple-nixos-mailserver",
          "repo": "blobs",
          "type": "gitlab"
        }
      },
      "europe": {
        "inputs": {
          "authelia-pr-nixpkgs": "authelia-pr-nixpkgs"
        },
        "locked": {
          "lastModified": 1,
          "narHash": "sha256-KfcEsyW2ZDA+QOAAf15zxioLYWbL/QCt0whj4FNoYPU=",
          "path": "./europe",
          "type": "path"
        },
        "original": {
          "path": "./europe",
          "type": "path"
        }
      },
      "flake-compat": {
        "flake": false,
        "locked": {
          "lastModified": 1668681692,
          "narHash": "sha256-Ht91NGdewz8IQLtWZ9LCeNXMSXHUss+9COoqu6JLmXU=",
          "owner": "edolstra",
          "repo": "flake-compat",
          "rev": "009399224d5e398d03b22badca40a37ac85412a1",
          "type": "github"
        },
        "original": {
          "owner": "edolstra",
          "repo": "flake-compat",
          "type": "github"
        }
      },
      "gitea": {
        "locked": {
          "dir": "sp-modules/gitea",
          "lastModified": 1716580485,
          "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=",
          "ref": "flakes",
          "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb",
          "revCount": 275,
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/gitea"
        },
        "original": {
          "dir": "sp-modules/gitea",
          "ref": "flakes",
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/gitea"
        }
      },
      "jitsi-meet": {
        "locked": {
          "dir": "sp-modules/jitsi-meet",
          "lastModified": 1716580485,
          "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=",
          "ref": "flakes",
          "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb",
          "revCount": 275,
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/jitsi-meet"
        },
        "original": {
          "dir": "sp-modules/jitsi-meet",
          "ref": "flakes",
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/jitsi-meet"
        }
      },
      "mailserver": {
        "inputs": {
          "blobs": "blobs",
          "flake-compat": "flake-compat",
          "nixpkgs": "nixpkgs",
          "nixpkgs-22_11": "nixpkgs-22_11",
          "nixpkgs-23_05": "nixpkgs-23_05",
          "utils": "utils"
        },
        "locked": {
          "lastModified": 1700085753,
          "narHash": "sha256-qtib7f3eRwfaUF+VziJXiBcZFqpHCAXS4HlrFsnzzl4=",
          "owner": "simple-nixos-mailserver",
          "repo": "nixos-mailserver",
          "rev": "008d78cc21959e33d0d31f375b88353a7d7121ae",
          "type": "gitlab"
        },
        "original": {
          "owner": "simple-nixos-mailserver",
          "repo": "nixos-mailserver",
          "type": "gitlab"
        }
      },
      "nextcloud": {
        "locked": {
          "dir": "sp-modules/nextcloud",
          "lastModified": 1716580485,
          "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=",
          "ref": "flakes",
          "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb",
          "revCount": 275,
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/nextcloud"
        },
        "original": {
          "dir": "sp-modules/nextcloud",
          "ref": "flakes",
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/nextcloud"
        }
      },
      "nixpkgs": {
        "locked": {
          "lastModified": 1670751203,
          "narHash": "sha256-XdoH1v3shKDGlrwjgrNX/EN8s3c+kQV7xY6cLCE8vcI=",
          "owner": "NixOS",
          "repo": "nixpkgs",
          "rev": "64e0bf055f9d25928c31fb12924e59ff8ce71e60",
          "type": "github"
        },
        "original": {
          "id": "nixpkgs",
          "ref": "nixos-unstable",
          "type": "indirect"
        }
      },
      "nixpkgs-22_11": {
        "locked": {
          "lastModified": 1669558522,
          "narHash": "sha256-yqxn+wOiPqe6cxzOo4leeJOp1bXE/fjPEi/3F/bBHv8=",
          "owner": "NixOS",
          "repo": "nixpkgs",
          "rev": "ce5fe99df1f15a09a91a86be9738d68fadfbad82",
          "type": "github"
        },
        "original": {
          "id": "nixpkgs",
          "ref": "nixos-22.11",
          "type": "indirect"
        }
      },
      "nixpkgs-23_05": {
        "locked": {
          "lastModified": 1684782344,
          "narHash": "sha256-SHN8hPYYSX0thDrMLMWPWYulK3YFgASOrCsIL3AJ78g=",
          "owner": "NixOS",
          "repo": "nixpkgs",
          "rev": "8966c43feba2c701ed624302b6a935f97bcbdf88",
          "type": "github"
        },
        "original": {
          "id": "nixpkgs",
          "ref": "nixos-23.05",
          "type": "indirect"
        }
      },
      "ocserv": {
        "locked": {
          "dir": "sp-modules/ocserv",
          "lastModified": 1716580485,
          "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=",
          "ref": "flakes",
          "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb",
          "revCount": 275,
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/ocserv"
        },
        "original": {
          "dir": "sp-modules/ocserv",
          "ref": "flakes",
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/ocserv"
        }
      },
      "pleroma": {
        "locked": {
          "dir": "sp-modules/pleroma",
          "lastModified": 1716580485,
          "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=",
          "ref": "flakes",
          "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb",
          "revCount": 275,
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/pleroma"
        },
        "original": {
          "dir": "sp-modules/pleroma",
          "ref": "flakes",
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/pleroma"
        }
      },
      "root": {
        "inputs": {
          "bitwarden": "bitwarden",
          "europe": "europe",
          "gitea": "gitea",
          "jitsi-meet": "jitsi-meet",
          "nextcloud": "nextcloud",
          "ocserv": "ocserv",
          "pleroma": "pleroma",
          "simple-nixos-mailserver": "simple-nixos-mailserver"
        }
      },
      "simple-nixos-mailserver": {
        "inputs": {
          "mailserver": "mailserver"
        },
        "locked": {
          "dir": "sp-modules/simple-nixos-mailserver",
          "lastModified": 1716580485,
          "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=",
          "ref": "flakes",
          "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb",
          "revCount": 275,
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/simple-nixos-mailserver"
        },
        "original": {
          "dir": "sp-modules/simple-nixos-mailserver",
          "ref": "flakes",
          "type": "git",
          "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/simple-nixos-mailserver"
        }
      },
      "utils": {
        "locked": {
          "lastModified": 1605370193,
          "narHash": "sha256-YyMTf3URDL/otKdKgtoMChu4vfVL3vCMkRqpGifhUn0=",
          "owner": "numtide",
          "repo": "flake-utils",
          "rev": "5021eac20303a61fafe17224c087f5519baed54d",
          "type": "github"
        },
        "original": {
          "owner": "numtide",
          "repo": "flake-utils",
          "type": "github"
        }
      }
    },
    "root": "root",
    "version": 7
  },
  "original": {
    "path": "/etc/nixos/sp-modules",
    "type": "path"
  },
  "originalUrl": "path:/etc/nixos/sp-modules",
  "path": "/nix/store/52bdi2ja5splwxyk5f5y440vbl4hiwqc-source",
  "resolved": {
    "path": "/etc/nixos/sp-modules",
    "type": "path"
  },
  "resolvedUrl": "path:/etc/nixos/sp-modules",
  "url": "path:/etc/nixos/sp-modules?lastModified=1716988040&narHash=sha256-FCmoquet%2B7IoENp3K2FUtwR9HD5%2By06vAwndx6nQu2Q%3D"
}

`$ nix flake metadata --json /etc/nixos/sp-modules`: ```json { "description": "SelfPrivacy NixOS PoC modules/extensions/bundles/packages/etc", "lastModified": 1716988040, "locked": { "lastModified": 1716988040, "narHash": "sha256-FCmoquet+7IoENp3K2FUtwR9HD5+y06vAwndx6nQu2Q=", "path": "/etc/nixos/sp-modules", "type": "path" }, "locks": { "nodes": { "authelia-pr-nixpkgs": { "locked": { "lastModified": 1714310759, "narHash": "sha256-LRZq/A3ziJTtaSxHZzq4jbfyymza/o9qR2K1cfmw8QI=", "owner": "nicomem", "repo": "nixpkgs", "rev": "79afdfef87cd07f6024cc3f793c8956fffe21644", "type": "github" }, "original": { "owner": "nicomem", "ref": "authelia-4.38", "repo": "nixpkgs", "type": "github" } }, "bitwarden": { "locked": { "dir": "sp-modules/bitwarden", "lastModified": 1716580485, "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=", "ref": "flakes", "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb", "revCount": 275, "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/bitwarden" }, "original": { "dir": "sp-modules/bitwarden", "ref": "flakes", "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/bitwarden" } }, "blobs": { "flake": false, "locked": { "lastModified": 1604995301, "narHash": "sha256-wcLzgLec6SGJA8fx1OEN1yV/Py5b+U5iyYpksUY/yLw=", "owner": "simple-nixos-mailserver", "repo": "blobs", "rev": "2cccdf1ca48316f2cfd1c9a0017e8de5a7156265", "type": "gitlab" }, "original": { "owner": "simple-nixos-mailserver", "repo": "blobs", "type": "gitlab" } }, "europe": { "inputs": { "authelia-pr-nixpkgs": "authelia-pr-nixpkgs" }, "locked": { "lastModified": 1, "narHash": "sha256-KfcEsyW2ZDA+QOAAf15zxioLYWbL/QCt0whj4FNoYPU=", "path": "./europe", "type": "path" }, "original": { "path": "./europe", "type": "path" } }, "flake-compat": { "flake": false, "locked": { "lastModified": 1668681692, "narHash": "sha256-Ht91NGdewz8IQLtWZ9LCeNXMSXHUss+9COoqu6JLmXU=", "owner": "edolstra", "repo": "flake-compat", "rev": "009399224d5e398d03b22badca40a37ac85412a1", "type": "github" }, "original": { "owner": "edolstra", "repo": "flake-compat", "type": "github" } }, "gitea": { "locked": { "dir": "sp-modules/gitea", "lastModified": 1716580485, "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=", "ref": "flakes", "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb", "revCount": 275, "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/gitea" }, "original": { "dir": "sp-modules/gitea", "ref": "flakes", "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/gitea" } }, "jitsi-meet": { "locked": { "dir": "sp-modules/jitsi-meet", "lastModified": 1716580485, "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=", "ref": "flakes", "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb", "revCount": 275, "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/jitsi-meet" }, "original": { "dir": "sp-modules/jitsi-meet", "ref": "flakes", "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/jitsi-meet" } }, "mailserver": { "inputs": { "blobs": "blobs", "flake-compat": "flake-compat", "nixpkgs": "nixpkgs", "nixpkgs-22_11": "nixpkgs-22_11", "nixpkgs-23_05": "nixpkgs-23_05", "utils": "utils" }, "locked": { "lastModified": 1700085753, "narHash": "sha256-qtib7f3eRwfaUF+VziJXiBcZFqpHCAXS4HlrFsnzzl4=", "owner": "simple-nixos-mailserver", "repo": "nixos-mailserver", "rev": "008d78cc21959e33d0d31f375b88353a7d7121ae", "type": "gitlab" }, "original": { "owner": "simple-nixos-mailserver", "repo": "nixos-mailserver", "type": "gitlab" } }, "nextcloud": { "locked": { "dir": "sp-modules/nextcloud", "lastModified": 1716580485, "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=", "ref": "flakes", "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb", "revCount": 275, "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/nextcloud" }, "original": { "dir": "sp-modules/nextcloud", "ref": "flakes", "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/nextcloud" } }, "nixpkgs": { "locked": { "lastModified": 1670751203, "narHash": "sha256-XdoH1v3shKDGlrwjgrNX/EN8s3c+kQV7xY6cLCE8vcI=", "owner": "NixOS", "repo": "nixpkgs", "rev": "64e0bf055f9d25928c31fb12924e59ff8ce71e60", "type": "github" }, "original": { "id": "nixpkgs", "ref": "nixos-unstable", "type": "indirect" } }, "nixpkgs-22_11": { "locked": { "lastModified": 1669558522, "narHash": "sha256-yqxn+wOiPqe6cxzOo4leeJOp1bXE/fjPEi/3F/bBHv8=", "owner": "NixOS", "repo": "nixpkgs", "rev": "ce5fe99df1f15a09a91a86be9738d68fadfbad82", "type": "github" }, "original": { "id": "nixpkgs", "ref": "nixos-22.11", "type": "indirect" } }, "nixpkgs-23_05": { "locked": { "lastModified": 1684782344, "narHash": "sha256-SHN8hPYYSX0thDrMLMWPWYulK3YFgASOrCsIL3AJ78g=", "owner": "NixOS", "repo": "nixpkgs", "rev": "8966c43feba2c701ed624302b6a935f97bcbdf88", "type": "github" }, "original": { "id": "nixpkgs", "ref": "nixos-23.05", "type": "indirect" } }, "ocserv": { "locked": { "dir": "sp-modules/ocserv", "lastModified": 1716580485, "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=", "ref": "flakes", "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb", "revCount": 275, "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/ocserv" }, "original": { "dir": "sp-modules/ocserv", "ref": "flakes", "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/ocserv" } }, "pleroma": { "locked": { "dir": "sp-modules/pleroma", "lastModified": 1716580485, "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=", "ref": "flakes", "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb", "revCount": 275, "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/pleroma" }, "original": { "dir": "sp-modules/pleroma", "ref": "flakes", "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/pleroma" } }, "root": { "inputs": { "bitwarden": "bitwarden", "europe": "europe", "gitea": "gitea", "jitsi-meet": "jitsi-meet", "nextcloud": "nextcloud", "ocserv": "ocserv", "pleroma": "pleroma", "simple-nixos-mailserver": "simple-nixos-mailserver" } }, "simple-nixos-mailserver": { "inputs": { "mailserver": "mailserver" }, "locked": { "dir": "sp-modules/simple-nixos-mailserver", "lastModified": 1716580485, "narHash": "sha256-ITG4CsX6j9mYhCYNutg9GXasT92qvOMPvCVlxXTOkWU=", "ref": "flakes", "rev": "132b6724cd78842609b131aff4a46e8e5fe1cccb", "revCount": 275, "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/simple-nixos-mailserver" }, "original": { "dir": "sp-modules/simple-nixos-mailserver", "ref": "flakes", "type": "git", "url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/simple-nixos-mailserver" } }, "utils": { "locked": { "lastModified": 1605370193, "narHash": "sha256-YyMTf3URDL/otKdKgtoMChu4vfVL3vCMkRqpGifhUn0=", "owner": "numtide", "repo": "flake-utils", "rev": "5021eac20303a61fafe17224c087f5519baed54d", "type": "github" }, "original": { "owner": "numtide", "repo": "flake-utils", "type": "github" } } }, "root": "root", "version": 7 }, "original": { "path": "/etc/nixos/sp-modules", "type": "path" }, "originalUrl": "path:/etc/nixos/sp-modules", "path": "/nix/store/52bdi2ja5splwxyk5f5y440vbl4hiwqc-source", "resolved": { "path": "/etc/nixos/sp-modules", "type": "path" }, "resolvedUrl": "path:/etc/nixos/sp-modules", "url": "path:/etc/nixos/sp-modules?lastModified=1716988040&narHash=sha256-FCmoquet%2B7IoENp3K2FUtwR9HD5%2By06vAwndx6nQu2Q%3D" } ```
houkime requested changes 2024-05-31 15:51:49 +03:00
@ -0,0 +53,4 @@
)
if __name__ == "__main__":
Collaborator

How do you plan to use this portion?
I guess this is for init, but I see no need to not just have a function for init?
And we will call it from migrations afterwards?

How do you plan to use this portion? I guess this is for init, but I see no need to not just have a function for init? And we will call it from migrations afterwards?

Looks like @def used it for testing without VM

Looks like @def used it for testing without VM
Poster
Collaborator

removed

removed
houkime marked this conversation as resolved
def added 1 commit 2024-05-31 16:05:19 +03:00
continuous-integration/drone/push Build is failing Details
50c781810f
fix: remove tests in not test file
def added 1 commit 2024-05-31 16:10:14 +03:00
continuous-integration/drone/push Build is failing Details
e63850f363
style: blacked
def requested review from houkime 2024-05-31 16:10:35 +03:00
Collaborator

as #117 shows the CI bug is a fluke. I am adding more test internal debug (who could have thought that test infa needs to cope with wild results!? /s ) in #118 in case it ever emerges again.

as #117 shows the CI bug is a fluke. I am adding more test internal debug (who could have thought that test infa needs to cope with wild results!? /s ) in #118 in case it ever emerges again.
houkime approved these changes 2024-06-05 14:47:14 +03:00
Some checks failed
continuous-integration/drone/push Build is failing
This pull request can be merged automatically.
You are not authorized to merge this pull request.
Sign in to join this conversation.
There is no content yet.