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/07/02 12:09] – [system config] fdc9:281f:4d7:9ee9::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 1832: | Line 1930: | ||
| ===== postmarketOS ===== | ===== postmarketOS ===== | ||
| + | ====== personal setup ====== | ||
| + | * enable beacondb in geoclue conf | ||
| + | |||
| + | ====== notes ====== | ||
| update checksum | update checksum | ||
| <code bash> | <code bash> | ||
| Line 1966: | Line 2068: | ||
| import dump | import dump | ||
| <code bash> | <code bash> | ||
| - | mysql -u root nextcloud < mydump.sql | + | mariadb |
| </ | </ | ||
| Line 2034: | 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.1782994152.txt.gz · Last modified: by fdc9:281f:4d7:9ee9::1
