From 10fbd226290ee02d4b9aa190bad4f47bb10cbc5b Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 5 Jul 2024 16:14:52 +0200 Subject: [PATCH] feat: Remove atticd service from sgx-nixos system The 'atticd' service has been deleted from the sgx-nixos configuration. Additionally, the reference to 'atticd.nix' has been removed from the 'default.nix' imports. This was done to help streamline the system configuration. --- systems/x86_64-linux/sgx-nixos/atticd.nix | 55 ---------------------- systems/x86_64-linux/sgx-nixos/default.nix | 1 - 2 files changed, 56 deletions(-) delete mode 100644 systems/x86_64-linux/sgx-nixos/atticd.nix diff --git a/systems/x86_64-linux/sgx-nixos/atticd.nix b/systems/x86_64-linux/sgx-nixos/atticd.nix deleted file mode 100644 index a619380..0000000 --- a/systems/x86_64-linux/sgx-nixos/atticd.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ pkgs, lib, config, ... }: -{ - services.postgresql = { - enable = true; - ensureDatabases = [ "attic" ]; - ensureUsers = [{ name = "atticd"; }]; - }; - - systemd.services.postgresql.postStart = lib.mkAfter '' - $PSQL -tAc 'ALTER DATABASE "attic" OWNER TO "atticd"' - ''; - - environment.systemPackages = with pkgs; [ - attic-client - ]; - services.atticd = { - enable = true; - - # Replace with absolute path to your credentials file - credentialsFile = "/etc/atticd.env"; - - settings = { - api-endpoint = "https://attic.teepot.org/"; - - garbage-collection.default-retention-period = "3 months"; - - database.url = "postgresql:///attic?host=/run/postgresql"; - - listen = "[::]:8080"; - - # Data chunking - # - # Warning: If you change any of the values here, it will be - # difficult to reuse existing chunks for newly-uploaded NARs - # since the cutpoints will be different. As a result, the - # deduplication ratio will suffer for a while after the change. - chunking = { - # The minimum NAR size to trigger chunking - # - # If 0, chunking is disabled entirely for newly-uploaded NARs. - # If 1, all NARs are chunked. - nar-size-threshold = 64 * 1024; # 64 KiB - - # The preferred minimum size of a chunk, in bytes - min-size = 16 * 1024; # 16 KiB - - # The preferred average size of a chunk, in bytes - avg-size = 64 * 1024; # 64 KiB - - # The preferred maximum size of a chunk, in bytes - max-size = 256 * 1024; # 256 KiB - }; - }; - }; -} diff --git a/systems/x86_64-linux/sgx-nixos/default.nix b/systems/x86_64-linux/sgx-nixos/default.nix index 505de44..32bd3bf 100644 --- a/systems/x86_64-linux/sgx-nixos/default.nix +++ b/systems/x86_64-linux/sgx-nixos/default.nix @@ -4,7 +4,6 @@ with lib.metacfg; { imports = [ ./hardware-configuration.nix - # ./atticd.nix ]; boot.kernel.sysctl."net.ipv4.conf.all.route_localnet" = 1;