Skip to content

Commit

Permalink
feat: Add new layout and 2 new colorschemes
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ishere committed Dec 2, 2024
1 parent 9e4e10f commit 396f9ce
Show file tree
Hide file tree
Showing 95 changed files with 1,775 additions and 617 deletions.
44 changes: 33 additions & 11 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 23 additions & 21 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,56 @@

inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
grub-theme.url = "github:max-ishere/grub-theme.nix?ref=main";
grub-theme.inputs.nixpkgs.follows = "nixpkgs";
# grubTheme.url = "github:max-ishere/grub-theme.nix?ref=main";
grubTheme.url = "/home/max_ishere/Projects/grub-theme.nix";
grubTheme.inputs.nixpkgs.follows = "nixpkgs";
hywenhei-extended-font = {
url = "github:cawa-93/HYWenHei-Extended-Font?ref=main";
flake = false;
};
};

outputs = {
self,
nixpkgs,
grub-theme,
grubTheme,
hywenhei-extended-font,
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {
unfreePkgs = import nixpkgs {
inherit system;
config.allowUnfree = true; # like this
};
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
inherit (nixpkgs) lib;
in {
formatter.${system} = pkgs.alejandra;

packages.${system} = {
preview-theme = grub-theme.lib.mkGrubThemePreview {
src = self.packages.${system}.grubshin-bootpact;
name = "grubshin-bootpact";
# resolution = "1280x720";
menuentries = builtins.map (png: let
class = lib.removeSuffix ".png" png;
in {
name = "class: ${class}";
inherit class;
}) (builtins.attrNames (builtins.readDir ./src/icons));
};
theme = pkgs.callPackage ./nix/theme.nix {
grubTheme = grubTheme.lib;
inherit hywenhei-extended-font;
};

grubshin-bootpact = pkgs.callPackage ./grubshin-bootpact.nix {
inherit (grub-theme.lib) mkGrubThemeTxt;
};
packages.${system} = import ./nix/packages/grubshin-bootpact.nix {
inherit (self) theme;
inherit lib;
grubTheme = grubTheme.lib;
};

devShells.${system} = {
default = pkgs.mkShell {
buildInputs = with pkgs; [
(vscode-with-extensions.override {
(unfreePkgs.vscode-with-extensions.override {
vscodeExtensions = with vscode-extensions; [
vscodevim.vim
jnoortheen.nix-ide
ms-vscode.hexeditor
];
})
nixd

inkscape
resvg
];
};
};
Expand Down
65 changes: 0 additions & 65 deletions grubshin-bootpact.nix

This file was deleted.

Binary file removed grubshin-bootpact/elements.png
Binary file not shown.
Binary file removed grubshin-bootpact/genshin-impact.pf2
Binary file not shown.
Binary file removed grubshin-bootpact/genshin-impact20.pf2
Binary file not shown.
Binary file removed grubshin-bootpact/grubshin-bootpact-logo.png
Binary file not shown.
Binary file removed grubshin-bootpact/highlight-box/c.png
Binary file not shown.
Binary file removed grubshin-bootpact/highlight-box/e.png
Binary file not shown.
Binary file removed grubshin-bootpact/highlight-box/n.png
Binary file not shown.
Binary file removed grubshin-bootpact/highlight-box/ne.png
Binary file not shown.
Binary file removed grubshin-bootpact/highlight-box/nw.png
Binary file not shown.
Binary file removed grubshin-bootpact/highlight-box/s.png
Binary file not shown.
Binary file removed grubshin-bootpact/highlight-box/se.png
Binary file not shown.
Binary file removed grubshin-bootpact/highlight-box/sw.png
Binary file not shown.
Binary file removed grubshin-bootpact/highlight-box/w.png
Binary file not shown.
131 changes: 0 additions & 131 deletions grubshin-bootpact/theme.txt

This file was deleted.

Binary file removed grubshin-bootpact720/elements.png
Binary file not shown.
Binary file removed grubshin-bootpact720/genshin-impact.pf2
Binary file not shown.
Binary file removed grubshin-bootpact720/genshin-impact20.pf2
Binary file not shown.
Binary file removed grubshin-bootpact720/grubshin-bootpact-logo.png
Binary file not shown.
Binary file removed grubshin-bootpact720/highlight-box/c.png
Binary file not shown.
Binary file removed grubshin-bootpact720/highlight-box/e.png
Binary file not shown.
Binary file removed grubshin-bootpact720/highlight-box/n.png
Binary file not shown.
Binary file removed grubshin-bootpact720/highlight-box/ne.png
Binary file not shown.
Binary file removed grubshin-bootpact720/highlight-box/nw.png
Binary file not shown.
Binary file removed grubshin-bootpact720/highlight-box/s.png
Binary file not shown.
Binary file removed grubshin-bootpact720/highlight-box/se.png
Binary file not shown.
Binary file removed grubshin-bootpact720/highlight-box/sw.png
Binary file not shown.
Binary file removed grubshin-bootpact720/highlight-box/w.png
Binary file not shown.
Binary file removed grubshin-bootpact720/icons/arch.png
Binary file not shown.
Binary file removed grubshin-bootpact720/icons/linux.png
Binary file not shown.
Binary file removed grubshin-bootpact720/icons/os.png
Binary file not shown.
Binary file removed grubshin-bootpact720/icons/windows.png
Diff not rendered.
Loading

0 comments on commit 396f9ce

Please sign in to comment.