Skip to content

Instantly share code, notes, and snippets.

View qweered's full-sized avatar
🏠
Working from home

Aliaksandr Samatyia qweered

🏠
Working from home
  • Vilnius, Lithuania
  • 07:52 (UTC +03:00)
View GitHub Profile
@qweered
qweered / allow-unfree-by-default.patch
Created August 24, 2026 02:42
nixpkgs: make allowUnfree default to true (used by qweered/hyprnixos via nixpkgs-patcher)
Make nixpkgs' `allowUnfree` default to true.
This is what github:numtide/nixpkgs-unfree does, minus the second nixpkgs
instance: that flake is `import nixpkgs { config.allowUnfree = true; ... }`
re-exposed as `legacyPackages`, so it carries no nixpkgs source tree of its
own -- nixpkgs-patcher and `nixpkgs.flake.source` both need a real tree, and
its GitHub tarball pin would not share a store path with our channel tarball.
`nixpkgs.config.allowUnfree` already covers the system closure. What this
patch adds is the ad-hoc CLI: `nixpkgs.flake.source` pins the registry and
/*For tailwind*/
*,
*::before,
*::after {
position: relative; /* make absolutely positioned elements relative to their parent by default */
margin: 0;
min-width: 0; /* prevent flex items from overflowing horizontally */
min-height: 0; /* prevent flex items from overflowing vertically */
padding: 0;
border-radius: 0;