add minegrub theme
This commit is contained in:
parent
4fd01b1d27
commit
9d3c03f849
5 changed files with 53 additions and 0 deletions
21
flake.lock
generated
21
flake.lock
generated
|
|
@ -245,6 +245,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"minegrub-theme": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1742563259,
|
||||||
|
"narHash": "sha256-OLFbGacrRFqSoqUc+pf66eb1xd0aU/crKfpiWSpJ0fw=",
|
||||||
|
"owner": "Lxtharia",
|
||||||
|
"repo": "minegrub-theme",
|
||||||
|
"rev": "b1caebbd5ab96f6afbfcd735b58fab9b9d8cf54b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Lxtharia",
|
||||||
|
"repo": "minegrub-theme",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-formatter-pack": {
|
"nix-formatter-pack": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -571,6 +591,7 @@
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"deploy-rs": "deploy-rs",
|
"deploy-rs": "deploy-rs",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
"minegrub-theme": "minegrub-theme",
|
||||||
"nix-on-droid": "nix-on-droid",
|
"nix-on-droid": "nix-on-droid",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,10 @@
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
minegrub-theme = {
|
||||||
|
url = "github:Lxtharia/minegrub-theme";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixvim = {
|
nixvim = {
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
dart.disabled = true;
|
dart.disabled = true;
|
||||||
python.disabled = true;
|
python.disabled = true;
|
||||||
nodejs.disabled = true;
|
nodejs.disabled = true;
|
||||||
|
c.disabled = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
./graphical-interface.nix
|
./graphical-interface.nix
|
||||||
./i18n.nix
|
./i18n.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
|
./minegrub.nix
|
||||||
./nix-settings.nix
|
./nix-settings.nix
|
||||||
./ollama.nix
|
./ollama.nix
|
||||||
./remote-builds.nix
|
./remote-builds.nix
|
||||||
|
|
|
||||||
26
modules/minegrub.nix
Normal file
26
modules/minegrub.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
{config, inputs, lib, ...}: {
|
||||||
|
imports = [
|
||||||
|
inputs.minegrub-theme.nixosModules.default
|
||||||
|
];
|
||||||
|
options = {
|
||||||
|
myModules.enableMinegrubTheme = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable Minecraft theme for grub.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkMerge [
|
||||||
|
(lib.mkIf config.myModules.enableMinegrubTheme {
|
||||||
|
|
||||||
|
|
||||||
|
boot.loader.grub = {
|
||||||
|
minegrub-theme = {
|
||||||
|
enable = true;
|
||||||
|
splash = "100% Flakes!";
|
||||||
|
background = "background_options/1.8 - [Classic Minecraft].png";
|
||||||
|
boot-options-count = 4;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue