diff --git a/flake.lock b/flake.lock index 75ed9a8..4b546ee 100644 --- a/flake.lock +++ b/flake.lock @@ -21,7 +21,42 @@ "type": "github" } }, + "minegrub-theme": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1689938346, + "narHash": "sha256-uB6B1c0vFwng5SHLNxR5LgPfxOW26O8TL0hCn02uwCI=", + "owner": "Lxtharia", + "repo": "minegrub-theme", + "rev": "b6f8a3a7e2fd22d72e2dbdaf563ad0bcb5c78e45", + "type": "github" + }, + "original": { + "owner": "Lxtharia", + "repo": "minegrub-theme", + "rev": "b6f8a3a7e2fd22d72e2dbdaf563ad0bcb5c78e45", + "type": "github" + } + }, "nixpkgs": { + "locked": { + "lastModified": 1693003285, + "narHash": "sha256-5nm4yrEHKupjn62MibENtfqlP6pWcRTuSKrMiH9bLkc=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5690c4271f2998c304a45c91a0aeb8fb69feaea7", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { "locked": { "lastModified": 1692794066, "narHash": "sha256-H0aG8r16dj0x/Wz6wQhQxc9V7AsObOiHPaKxQgH6Y08=", @@ -55,7 +90,8 @@ "root": { "inputs": { "home-manager": "home-manager", - "nixpkgs": "nixpkgs", + "minegrub-theme": "minegrub-theme", + "nixpkgs": "nixpkgs_2", "nur": "nur" } } diff --git a/flake.nix b/flake.nix index b94f08d..2c5ef21 100644 --- a/flake.nix +++ b/flake.nix @@ -12,12 +12,10 @@ home-manager.url = "github:nix-community/home-manager/release-23.05"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; + minegrub-theme.url = "github:Lxtharia/minegrub-theme/b6f8a3a7e2fd22d72e2dbdaf563ad0bcb5c78e45"; + # TODO: Add any other flake you might need # hardware.url = "github:nixos/nixos-hardware"; - - # Shameless plug: looking for a way to nixify your themes and make - # everything match nicely? Try nix-colors! - # nix-colors.url = "github:misterio77/nix-colors"; }; outputs = { nixpkgs, home-manager, ... }@inputs: { @@ -27,7 +25,10 @@ nixos = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; }; # Pass flake inputs to our config # > Our main nixos configuration file < - modules = [ ./nixos/configuration.nix ]; + modules = [ + ./nixos/configuration.nix + inputs.minegrub-theme.nixosModules.default + ]; }; }; diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 4d9aa0d..0764615 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -71,10 +71,16 @@ # boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.efiSysMountPoint = "/boot/efi"; - boot.loader.grub.enable = true; - boot.loader.grub.device = "nodev"; - boot.loader.grub.efiSupport = true; - boot.loader.grub.useOSProber = true; + boot.loader.grub = { + enable = true; + device = "nodev"; + efiSupport = true; + useOSProber = true; + minegrub-theme = { + enable = true; + # splash = ":3"; + }; + }; # Enable the X11 windowing system. services.xserver = { @@ -190,6 +196,7 @@ wineWowPackages.stable virt-manager podman + neofetch # for the grub theme ]; # Some programs need SUID wrappers, can be configured further or are