Plymouth!

Yeah yeah I know...
This commit is contained in:
Geoffrey Frogeye 2024-01-27 00:23:38 +01:00
parent 9c6a2f69f0
commit 5bba711d3c
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
7 changed files with 61 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ ... }:
{ pkgs, lib, config, ... }:
{
imports = [
./options.nix
@ -9,7 +9,6 @@
networking.hostName = "curacao";
boot = {
initrd.luks.reusePassphrases = true;
loader = {
efi.efiSysMountPoint = "/efi";
};

View file

@ -82,6 +82,7 @@
./os
disko.nixosModules.disko
home-manager.nixosModules.home-manager
stylix.nixosModules.stylix
];
};
nixOnDroidModules.dotfiles = {

View file

@ -11,6 +11,7 @@ in
stylix = {
base16Scheme = "${pkgs.base16-schemes}/share/themes/${basetheme}-${config.frogeye.polarity}.yaml";
polarity = config.frogeye.polarity;
fonts = {
monospace = {
package = pkgs.nerdfonts.override {

View file

@ -8,6 +8,7 @@
./desktop.nix
./gaming
./geoffrey.nix
./style
./wireless.nix
];
}

25
os/style/bg.svg Normal file
View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1" height="1" enable-background="new" version="1.1" viewBox="0 0 1 1" xml:space="preserve">
<defs>
<linearGradient id="a" x1="559.8" x2="559.8" y1=".0125" y2="834.89" gradientTransform="matrix(.002 0 0 .002 -2962.3 128.19)" gradientUnits="userSpaceOnUse">
<stop stop-color="#CCE474" offset="0"/>
<stop stop-color="#CBE372" offset=".21961"/>
<stop stop-color="#C8E26B" offset=".29804"/>
<stop stop-color="#C3DE60" offset=".35686"/>
<stop stop-color="#BBD94F" offset=".4"/>
<stop stop-color="#B1D339" offset=".43922"/>
<stop stop-color="#A4CB1E" offset=".47451"/>
<stop stop-color="#99C405" offset=".49804"/>
<stop stop-color="#A2CC18" offset=".54118"/>
<stop stop-color="#AAD329" offset=".59216"/>
<stop stop-color="#B0D834" offset=".6549"/>
<stop stop-color="#B3DB3B" offset=".74902"/>
<stop stop-color="#B4DC3D" offset="1"/>
</linearGradient>
</defs>
<g transform="translate(559.29 -691.3)">
<g transform="matrix(.44657 0 0 .59891 763.59 614.53)">
<path d="m-2960.1 129.86v-1.6697h-2.2393v1.6697z" fill="url(#a)"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

24
os/style/default.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs, lib, config, ... }:
{
config = {
boot = {
plymouth.enable = true;
initrd.systemd.enable = true;
};
stylix = {
base16Scheme = "${pkgs.base16-schemes}/share/themes/solarized-${config.stylix.polarity}.yaml";
image = builtins.fetchurl {
url = "https://get.wallhere.com/photo/sunlight-abstract-minimalism-green-simple-circle-light-leaf-wave-material-line-wing-computer-wallpaper-font-close-up-macro-photography-124350.png";
sha256 = "sha256:1zfq3f3v34i45mi72pkfqphm8kbhczsg260xjfl6dbydy91d7y93";
};
homeManagerIntegration.autoImport = false; # Makes config reuse easier
polarity = "dark";
targets.plymouth.logo = pkgs.runCommand "flower.png" { } "${pkgs.inkscape}/bin/inkscape ${pkgs.substituteAll {
src = ./flower.svg;
color = config.lib.stylix.colors.withHashtag.base07;
}} -w 256 -o $out";
# UPST Default grub font is sansSerif, which doesn't work.
# Maybe because people patch mono with nerdfonts and that isn't compatible?
};
};
}

8
os/style/flower.svg Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="32.638" height="33.067" enable-background="new" version="1.1" viewBox="0 0 32.638 33.067" xml:space="preserve">
<g transform="translate(587.12 -740.77)">
<g transform="matrix(.57741 0 0 -.57741 -575.42 770.38)" fill="@color@">
<path d="m0 0c-0.977-2.42-2.724-3.975-5.139-3.018-2.419 0.957-3.087 3.466-2.009 7.53 2.051 6.483 8.06 10.28 14.171 15.72 2.007-7.532 4.018-15.062 1.968-21.548-0.205-3.289-3.595-4.748-5.24-4.662-2.415 0.957-3.187 1.824-3.751 5.978m-15.43 17.332c-3.287 0.177-4.829 1.911-4.729 3.555-0.669 2.508 1.951 4.84 4.466 5.531 6.68 1.284 13.925-1.586 21.172-4.454-6.111-5.439-11.448-11.744-17.254-12.254-3.389-1.463-6.577 0.359-7.25 2.872-0.668 2.506 0.204 3.284 3.595 4.75m8.001 22.651c-1.44 3.377-2.109 5.888-0.364 7.443 1.749 1.551 4.934-0.271 7.246-2.87 3.858-4.332 5.868-11.865 7.002-20.171-8.118 2.091-16.238 4.184-20.096 8.515-2.313 2.601-2.882 6.753-1.135 8.307 1.746 1.555 4.161 0.598 7.347-1.224m23.428 5.321c0.976 2.422 2.724 3.973 5.137 3.018 2.412-0.956 3.084-3.466 2.01-7.53-2.052-6.485-8.063-10.28-14.172-15.721-2.011 7.531-4.019 15.064-1.968 21.547 0.205 3.289 3.591 4.75 5.236 4.664 2.415-0.96 3.19-1.825 3.757-5.978m15.427-17.333c3.284-0.177 4.831-1.909 4.729-3.554 0.667-2.509-1.95-4.841-4.466-5.529-6.68-1.285-13.927 1.583-21.173 4.453 6.111 5.438 11.45 11.744 17.257 12.253 3.389 1.463 6.574-0.36 7.245-2.87 0.67-2.509-0.204-3.287-3.592-4.753m-8.002-22.651c1.439-3.378 2.113-5.885 0.368-7.442-1.747-1.552-4.935 0.27-7.251 2.87-3.857 4.332-5.865 11.864-6.999 20.173 8.117-2.094 16.237-4.185 20.095-8.518 2.313-2.599 2.883-6.754 1.136-8.309-1.746-1.554-4.161-0.595-7.349 1.226" fill="@color@" fill-rule="evenodd"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB