onny:notizen
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| onny:notizen [2026/06/30 09:33] – [postgresql] 10.250.0.1 | onny:notizen [2026/07/14 09:42] (current) – [packaging] 10.250.0.1 | ||
|---|---|---|---|
| Line 1224: | Line 1224: | ||
| <code bash> | <code bash> | ||
| nix-shell -p ' | nix-shell -p ' | ||
| - | </ | ||
| - | |||
| - | fetchpatch array | ||
| - | |||
| - | < | ||
| - | patches = map fetchpatch [ | ||
| - | /* This patch is currently necessary for the unit test suite to run correctly. | ||
| - | * See https:// | ||
| - | * and https:// | ||
| - | */ | ||
| - | #{ | ||
| - | # name = " | ||
| - | # sha256 = " | ||
| - | # url = " | ||
| - | #} | ||
| - | |||
| - | # This patch fixes test compile issues with glibc 2.33+. | ||
| - | #{ | ||
| - | # name = " | ||
| - | # sha256 = " | ||
| - | # url = " | ||
| - | #} | ||
| </ | </ | ||
| Line 1280: | Line 1258: | ||
| }; | }; | ||
| }; | }; | ||
| + | </ | ||
| + | |||
| + | update package | ||
| + | |||
| + | < | ||
| + | nix-update gelly | ||
| + | nix-update stamp --version=branch=main | ||
| </ | </ | ||
| ==== packaging ==== | ==== packaging ==== | ||
| Line 1295: | Line 1280: | ||
| </ | </ | ||
| + | fetchpatch array | ||
| + | |||
| + | < | ||
| + | patches = map fetchpatch [ | ||
| + | /* This patch is currently necessary for the unit test suite to run correctly. | ||
| + | * See https:// | ||
| + | * and https:// | ||
| + | */ | ||
| + | #{ | ||
| + | # name = " | ||
| + | # sha256 = " | ||
| + | # url = " | ||
| + | #} | ||
| + | |||
| + | # This patch fixes test compile issues with glibc 2.33+. | ||
| + | #{ | ||
| + | # name = " | ||
| + | # sha256 = " | ||
| + | # url = " | ||
| + | #} | ||
| + | </ | ||
| + | |||
| + | systemd hardening | ||
| + | |||
| + | < | ||
| + | { | ||
| + | ... | ||
| + | }: | ||
| + | |||
| + | let | ||
| + | |||
| + | defaultServiceConfig = { | ||
| + | User = " | ||
| + | Group = " | ||
| + | WorkingDirectory = " | ||
| + | StateDirectory = cfg.stateDir; | ||
| + | # Service hardening | ||
| + | ReadWritePaths = [ cfg.stateDir ]; | ||
| + | CacheDirectory = " | ||
| + | AmbientCapabilities = ""; | ||
| + | CapabilityBoundingSet = ""; | ||
| + | # ProtectClock adds DeviceAllow=char-rtc r | ||
| + | DeviceAllow = ""; | ||
| + | DevicePolicy = " | ||
| + | LockPersonality = true; | ||
| + | # Loosening setting, required by Ruby daemon | ||
| + | MemoryDenyWriteExecute = false; | ||
| + | NoNewPrivileges = true; | ||
| + | RemoveIPC = true; | ||
| + | PrivateDevices = true; | ||
| + | PrivateMounts = true; | ||
| + | PrivateTmp = true; | ||
| + | PrivateUsers = true; | ||
| + | ProtectClock = true; | ||
| + | ProtectHome = true; | ||
| + | ProtectHostname = true; | ||
| + | ProtectSystem = " | ||
| + | ProtectControlGroups = true; | ||
| + | ProtectKernelLogs = true; | ||
| + | ProtectKernelModules = true; | ||
| + | ProtectKernelTunables = true; | ||
| + | ProtectProc = " | ||
| + | ProcSubset = " | ||
| + | RestrictAddressFamilies = [ | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ]; | ||
| + | RestrictNamespaces = true; | ||
| + | RestrictRealtime = true; | ||
| + | RestrictSUIDSGID = true; | ||
| + | SystemCallArchitectures = " | ||
| + | SystemCallFilter = [ | ||
| + | " | ||
| + | # Loosening setting, required by Ruby daemon | ||
| + | #" | ||
| + | ]; | ||
| + | UMask = " | ||
| + | }; | ||
| + | |||
| + | in | ||
| + | { | ||
| + | |||
| + | [...] | ||
| + | systemd.services." | ||
| + | serviceConfig = defaultServiceConfig // { | ||
| + | </ | ||
| + | |||
| + | python modules hooks | ||
| + | |||
| + | < | ||
| + | nativeCheckInputs = [ | ||
| + | pytestCheckHook | ||
| + | writableTmpDirAsHomeHook | ||
| + | ] | ||
| + | </ | ||
| + | |||
| + | update script git updater | ||
| + | |||
| + | < | ||
| + | passthru.updateScript = gitUpdater { | ||
| + | ignoredVersions = " | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | debuggig, run commands inside derivation | ||
| + | |||
| + | < | ||
| + | nix develop -f . stamp -c bash -c ' | ||
| + | nix develop -f . stamp -c bash -c ' | ||
| + | nix develop -f . stamp -c bash -c ' | ||
| + | 2.88.1 | ||
| + | </ | ||
| ===== tools ===== | ===== tools ===== | ||
| Line 1631: | Line 1729: | ||
| nixpkgs.overlays = [ | nixpkgs.overlays = [ | ||
| (self: super: { | (self: super: { | ||
| + | |||
| python3 = super.python3.override { | python3 = super.python3.override { | ||
| packageOverrides = python-final: | packageOverrides = python-final: | ||
| Line 1639: | Line 1738: | ||
| }); | }); | ||
| }; | }; | ||
| - | }; | + | }; |
| + | |||
| + | bcachefs-tools = super.bcachefs-tools.overrideAttrs (final: oldAttrs: { | ||
| + | version = " | ||
| + | src = super.fetchFromGitHub { | ||
| + | owner = " | ||
| + | repo = " | ||
| + | rev = " | ||
| + | hash = " | ||
| + | }; | ||
| + | cargoHash = null; | ||
| + | cargoDeps = pkgs.rustPlatform.fetchCargoVendor { | ||
| + | src = final.src; | ||
| + | hash = " | ||
| + | }; | ||
| + | }); | ||
| }) | }) | ||
| ]; | ]; | ||
| Line 1815: | Line 1930: | ||
| ===== postmarketOS ===== | ===== postmarketOS ===== | ||
| + | ====== personal setup ====== | ||
| + | * enable beacondb in geoclue conf | ||
| + | |||
| + | ====== notes ====== | ||
| update checksum | update checksum | ||
| <code bash> | <code bash> | ||
| Line 1949: | Line 2068: | ||
| import dump | import dump | ||
| <code bash> | <code bash> | ||
| - | mysql -u root nextcloud < mydump.sql | + | mariadb |
| </ | </ | ||
| Line 2017: | Line 2136: | ||
| multi-cursor selection mode | multi-cursor selection mode | ||
| + | |||
| < | < | ||
| Normal mode -> V (visual mode) -> Shift+C (multiple times) -> i (insert mode) -> Enter something | Normal mode -> V (visual mode) -> Shift+C (multiple times) -> i (insert mode) -> Enter something | ||
| ESC -> , | ESC -> , | ||
| + | </ | ||
| + | |||
| + | sort | ||
| + | |||
| + | < | ||
| + | - select multiple lines | ||
| + | - press Alt-S | ||
| + | - type ": | ||
| </ | </ | ||
onny/notizen.1782812018.txt.gz · Last modified: by 10.250.0.1
