mirror of
https://github.com/AdisonCavani/distro-grub-themes.git
synced 2025-06-06 15:12:35 +02:00
docs: add install steps for nix flake
This commit is contained in:
parent
0159131956
commit
08324f165e
1 changed files with 75 additions and 0 deletions
|
@ -84,6 +84,81 @@ sudo eopkg install grub-customizer
|
||||||
To revert back to the orignal KDE Neon theme, open GRUB Customizer, and in the Appearance settings tab, change the theme dropdown back to breeze.
|
To revert back to the orignal KDE Neon theme, open GRUB Customizer, and in the Appearance settings tab, change the theme dropdown back to breeze.
|
||||||
</Callout>
|
</Callout>
|
||||||
|
|
||||||
|
## Installation via Nix Flakes
|
||||||
|
### Prerequisites
|
||||||
|
- Nix 2.4 or later
|
||||||
|
- Experimental features `nix-command` and `flakes` enabled.
|
||||||
|
- You can achive that by adding the following to your `configuration.nix` and rebuilding your system.
|
||||||
|
```nix
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixFlakes;
|
||||||
|
extraOptions = ''
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
### NixOS module
|
||||||
|
To use this theme as a NixOS module, a bare-minimum configuration would be as follows:
|
||||||
|
`flake.nix`:
|
||||||
|
```nix
|
||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
|
distro-grub-themes.url = "github:AdisonCavani/distro-grub-themes";
|
||||||
|
};
|
||||||
|
outputs = { self, nixpkgs, ... }@inputs: {
|
||||||
|
nixosConfigurations."default" = nixpkgs.lib.nixosSystem rec {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
./configuration.nix
|
||||||
|
inputs.distro-grub-themes.nixosModules.${system}.default
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
`configuration.nix`:
|
||||||
|
```nix
|
||||||
|
{ config, pkgs, lib, ... }: {
|
||||||
|
distro-grub-themes = {
|
||||||
|
enable = true;
|
||||||
|
theme = "<theme_name>";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Standalone setup
|
||||||
|
To use this theme in a standalone setup, a bare-minimum configuration would be as follows:
|
||||||
|
`flake.nix`:
|
||||||
|
```nix
|
||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
|
distro-grub-themes.url = "github:AdisonCavani/distro-grub-themes";
|
||||||
|
};
|
||||||
|
outputs = { self, nixpkgs, ... }@inputs: {
|
||||||
|
nixosConfigurations."default" = nixpkgs.lib.nixosSystem rec {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
./configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
`configuration.nix`:
|
||||||
|
```nix
|
||||||
|
{ config, pkgs, lib, inputs, ... }: {
|
||||||
|
|
||||||
|
boot.loader.grub = rec {
|
||||||
|
theme = inputs.distro-grub-themes.packages.${system}.<theme_name>-grub-theme;
|
||||||
|
splashImage = "${theme}/splash_image.jpg";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Manual Installation
|
## Manual Installation
|
||||||
|
|
||||||
In order to clone the repository from GitHub, you have to install Git, via the `git` package.
|
In order to clone the repository from GitHub, you have to install Git, via the `git` package.
|
||||||
|
|
Loading…
Add table
Reference in a new issue