Skip to content

Commit

Permalink
deprecate unl0kr in favor of buffybox
Browse files Browse the repository at this point in the history
  • Loading branch information
hustlerone committed Dec 7, 2024
1 parent 15a595e commit 5be955a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions nixos/modules/system/boot/unl0kr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ in
description = ''Whether to enable the unl0kr on-screen keyboard in initrd to unlock LUKS.'';
};

package = lib.mkPackageOption pkgs "unl0kr" { };
package = lib.mkPackageOption pkgs "buffybox" { };

allowVendorDrivers = lib.mkEnableOption "load optional drivers" // {
description = ''Whether to load additional drivers for certain vendors (I.E: Wacom, Intel, etc.)'';
Expand All @@ -27,7 +27,7 @@ in
See `unl0kr.conf(5)` for supported values.
Alternatively, visit `https://gitlab.com/postmarketOS/buffybox/-/blob/unl0kr-2.0.0/unl0kr.conf`
Alternatively, visit `https://gitlab.postmarketos.org/postmarketOS/buffybox/-/blob/3.2.0/unl0kr/unl0kr.conf`
'';

example = lib.literalExpression ''
Expand Down Expand Up @@ -55,12 +55,14 @@ in
assertion = !config.boot.plymouth.enable;
message = "unl0kr will not work if plymouth is enabled.";
}
{
assertion = !config.hardware.amdgpu.initrd.enable;
message = "unl0kr has issues with video drivers that are loaded on stage 1.";
}
];

warnings =
if config.hardware.amdgpu.initrd.enable then
[ ''Use early video loading at your risk. It's not guaranteed to work with unl0kr.'' ]
else
[ ];

boot.initrd.availableKernelModules =
lib.optionals cfg.enable [
"hid-multitouch"
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,7 @@ mapAliases {
unifi8 = unifi; # Added 2024-11-15
unifiLTS = throw "'unifiLTS' has been removed since UniFi no longer has LTS and stable releases. Use `pkgs.unifi` instead."; # Added 2024-04-11
unifiStable = throw "'unifiStable' has been removed since UniFi no longer has LTS and stable releases. Use `pkgs.unifi` instead."; # Converted to throw 2024-04-11
unl0kr = lib.warnOnInstantiate "'unl0kr' is now deprecated, as it's now included in buffybox." buffybox; # Deprecated since 2024-12-07
untrunc = throw "'untrunc' has been renamed to/replaced by 'untrunc-anthwlock'"; # Converted to throw 2024-10-17
urxvt_autocomplete_all_the_things = throw "'urxvt_autocomplete_all_the_things' has been renamed to/replaced by 'rxvt-unicode-plugins.autocomplete-all-the-things'"; # Converted to throw 2024-10-17
urxvt_bidi = throw "'urxvt_bidi' has been renamed to/replaced by 'rxvt-unicode-plugins.bidi'"; # Converted to throw 2024-10-17
Expand Down

0 comments on commit 5be955a

Please sign in to comment.