chore(lamassu): remove unused items
Some checks failed
nix-bitcoin tests / build_test_drivers (push) Has been cancelled
nix-bitcoin tests / check_flake (push) Has been cancelled
nix-bitcoin tests / test_scenario (default) (push) Has been cancelled
nix-bitcoin tests / test_scenario (joinmarket-bitcoind-29) (push) Has been cancelled
nix-bitcoin tests / test_scenario (netns) (push) Has been cancelled
nix-bitcoin tests / test_scenario (netnsRegtest) (push) Has been cancelled

- Remove redundant source path from ReadWritePaths (already under dataDir)
- Remove gnused from build path (unused)
- Remove unused logs directory from tmpfiles

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-01-09 23:37:40 +01:00
parent 3b39918c38
commit 4fd0a02f81

View file

@ -60,7 +60,7 @@ let
RestrictSUIDSGID = true; RestrictSUIDSGID = true;
LockPersonality = true; LockPersonality = true;
MemoryDenyWriteExecute = false; # Required for Node.js JIT MemoryDenyWriteExecute = false; # Required for Node.js JIT
ReadWritePaths = [ cfg.dataDir "${cfg.dataDir}/source" ]; ReadWritePaths = [ cfg.dataDir ];
RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ]; RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ];
User = cfg.user; User = cfg.user;
Group = cfg.group; Group = cfg.group;
@ -221,7 +221,6 @@ in
# Data directories # Data directories
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"d '${cfg.dataDir}' 0770 ${cfg.user} ${cfg.group} - -" "d '${cfg.dataDir}' 0770 ${cfg.user} ${cfg.group} - -"
"d '${cfg.dataDir}/logs' 0770 ${cfg.user} ${cfg.group} - -"
"d '${cfg.dataDir}/ofac' 0770 ${cfg.user} ${cfg.group} - -" "d '${cfg.dataDir}/ofac' 0770 ${cfg.user} ${cfg.group} - -"
"d '${cfg.dataDir}/photos' 0770 ${cfg.user} ${cfg.group} - -" "d '${cfg.dataDir}/photos' 0770 ${cfg.user} ${cfg.group} - -"
"d '${cfg.dataDir}/photos/idcards' 0770 ${cfg.user} ${cfg.group} - -" "d '${cfg.dataDir}/photos/idcards' 0770 ${cfg.user} ${cfg.group} - -"
@ -261,8 +260,8 @@ in
wants = [ "network-online.target" ]; wants = [ "network-online.target" ];
path = with pkgs; [ path = with pkgs; [
nodejs_22 nodePackages.pnpm python3 git coreutils gnused bash nodejs_22 nodePackages.pnpm python3 git coreutils bash util-linux
util-linux stdenv.cc gnumake pkg-config binutils expat stdenv.cc gnumake pkg-config binutils expat
]; ];
environment = { environment = {