limine: init (#1952)
Closes: https://github.com/nix-community/stylix/issues/991 Link: https://github.com/nix-community/stylix/pull/1952 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> Reviewed-by: 0xda157 <da157@voidq.com>
This commit is contained in:
parent
46ab7e000e
commit
ab29ae14d7
4 changed files with 73 additions and 0 deletions
|
|
@ -211,6 +211,12 @@
|
|||
githubId = 45952970;
|
||||
name = "repparw";
|
||||
};
|
||||
skiletro = {
|
||||
email = "git@skilet.ro";
|
||||
github = "skiletro";
|
||||
githubId = 19377854;
|
||||
name = "jamie";
|
||||
};
|
||||
skoove = {
|
||||
email = "zie@sturges.com.au";
|
||||
github = "skoove";
|
||||
|
|
|
|||
6
modules/limine/meta.nix
Normal file
6
modules/limine/meta.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
name = "Limine";
|
||||
homepage = "https://limine-bootloader.org";
|
||||
maintainers = [ lib.maintainers.skiletro ];
|
||||
}
|
||||
55
modules/limine/nixos.nix
Normal file
55
modules/limine/nixos.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
mkTarget,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
mkTarget {
|
||||
name = "limine";
|
||||
humanName = "Limine";
|
||||
|
||||
extraOptions.useWallpaper = config.lib.stylix.mkEnableWallpaper "Limine" true;
|
||||
|
||||
configElements = [
|
||||
(
|
||||
{ colors }:
|
||||
{
|
||||
boot.loader.limine.style = with colors; {
|
||||
graphicalTerminal = {
|
||||
palette = "${base05};${base08};${base0B};${base0A};${base0D};${base0E};${base0C};${base00}";
|
||||
brightPalette = "${base00};${base08};${base0B};${base0A};${base0D};${base0E};${base0C};${base05}";
|
||||
background = base00;
|
||||
foreground = base05;
|
||||
brightBackground = base05;
|
||||
brightForeground = base0A;
|
||||
};
|
||||
backdrop = base00;
|
||||
};
|
||||
}
|
||||
)
|
||||
(
|
||||
{ cfg, image }:
|
||||
{
|
||||
boot.loader.limine.style.wallpapers = lib.mkIf cfg.useWallpaper [
|
||||
image
|
||||
];
|
||||
}
|
||||
)
|
||||
(
|
||||
{ imageScalingMode }:
|
||||
{
|
||||
# Stylix supports more scaling modes than limine supports.
|
||||
boot.loader.limine.style.wallpaperStyle =
|
||||
{
|
||||
"stretch" = "stretched";
|
||||
"fill" = "stretched";
|
||||
"fit" = "stretched";
|
||||
"center" = "centered";
|
||||
"tile" = "tiled";
|
||||
inherit null;
|
||||
}
|
||||
.${imageScalingMode};
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
||||
|
|
@ -53,6 +53,12 @@
|
|||
github = "osipog";
|
||||
githubId = 87434959;
|
||||
};
|
||||
skiletro = {
|
||||
email = "git@skilet.ro";
|
||||
name = "jamie";
|
||||
github = "skiletro";
|
||||
githubId = 19377854;
|
||||
};
|
||||
skoove = {
|
||||
email = "zie@sturges.com.au";
|
||||
name = "Zie Sturges";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue