Site Tools


onny:notizen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
onny:notizen [2026/03/27 09:40] – [modules] fdc9:281f:4d7:9ee9::1onny:notizen [2026/04/14 08:59] (current) – [postmarketOS] fdc9:281f:4d7:9ee9::1
Line 291: Line 291:
 Constant quality AV1.  The CRF value can be from 0–63. Lower values mean better quality. Constant quality AV1.  The CRF value can be from 0–63. Lower values mean better quality.
 <code bash> <code bash>
-ffmpeg -i input.mp4 -c:v libaom-av1 -crf 30 -strict experimental av1_test.mp4+ffmpeg -i input.mov -c:v libsvtav1 -crf 30 -preset 6 -svtav1-params tune=0 -c:a libopus -b:a 128k output.webm
 </code> </code>
 Burn subtitles, fast video conversion Burn subtitles, fast video conversion
Line 617: Line 617:
 </code> </code>
 ==== git ==== ==== git ====
 +
 +unstage changes to a specific file of a specific commit
 +<code bash>
 +git rebase -i 19d0900f23e0b29fc2706dbbf8a806cea7c3e0f2^
 +git restore --staged --source=HEAD^ -- pkgs/by-name/op/openproject/package.nix
 +git restore -- pkgs/by-name/op/openproject/package.nix
 +git commit --amend
 +git rebase --continue
 +</code>
 +
 +merge changes into last commit
 +<code bash>
 +git commit -a --amend --no-edit
 +</code>
 +
 show remote origin show remote origin
 <code bash> <code bash>
 git remote show origin git remote show origin
 </code> </code>
 +
 change remote origin change remote origin
 <code bash> <code bash>
Line 981: Line 997:
 </code> </code>
 ===== systemd ===== ===== systemd =====
 +
 +systemctl show unit environment
 +<code>
 +systemctl show rsshub --property=Environment
 +</code>
 +
 service hardening service hardening
 <code> <code>
Line 1562: Line 1584:
 </code> </code>
  
-===== system config =====+==== system config ====
  
-use module from unstable+use module and package from remote repo
  
 <code> <code>
-nixpkgs.config.packageOverrides pkgsrec { +
-  unstable = import unstableTarball { }+  inputs = { 
-  opensnitch = unstable.opensnitch;+    nixpkgs.url "github:NixOS/nixpkgs/nixos-25.11"; 
 +    invoiceplane-unstable.url "nixpkgs/master"
 +  };
 }; };
 </code> </code>
  
-overlay: use overwrite package from custom remote or local repo fork:+<code> 
 +disabledModules = [ 
 +  "services/web-apps/invoiceplane.nix" 
 +]; 
 +imports = [ 
 +  "${inputs.invoiceplane-unstable}/nixos/modules/services/web-apps/invoiceplane.nix" 
 +];
  
-<code> +nixpkgs.overlays = [ 
-  nixpkgs.overlays = [ +  (self: super: { 
-    (self: super: { +    invoiceplane inputs.invoiceplane-unstable.legacyPackages.x86_64-linux.invoiceplane
-      foo2zjs (import (builtins.fetchTarball { +    plausible inputs.plausible-riscv.legacyPackages.x86_64-linux.pkgsCross.riscv64.plausible
-        url = +  }) 
-          "https://github.com/onny/nixpkgs/archive/foo2zjs.tar.gz"+];
-        sha256 "1jp98jhc4mw9bipdiq7qdrzn3lslk4mi7prqfh2v43isgsvpd6bg"; +
-      }) { config = { allowUnfree = true; }; }).foo2zjs; +
-      linux-wifi-hotspot = (import /home/onny/projects/nixpkgs2 {}).linux-wifi-hotspot+
-    }) +
-  ];+
 </code> </code>
- +==== modules ====
-===== modules =====+
  
 converting cfg.settings to strings only for systemd environment variables etc converting cfg.settings to strings only for systemd environment variables etc
Line 1606: Line 1630:
 local file path as flake input local file path as flake input
 <code> <code>
-inputs.verwaltungstracker.url = "path:/home/onny/projects/verwaltungstracker";+inputs.verwaltungstracker.url = "git+file:///home/onny/projects/verwaltungstracker";
 </code> </code>
  
Line 1763: Line 1787:
  
 ===== postmarketOS ===== ===== postmarketOS =====
 +
 +update checksum
 +<code bash>
 +pmbootstrap checksum device-samsung-dream
 +</code>
  
 general chroot management general chroot management
onny/notizen.1774604429.txt.gz · Last modified: by fdc9:281f:4d7:9ee9::1