minegrub!

This commit is contained in:
nora 2023-08-27 11:38:37 +02:00
parent dac43bf48b
commit 8d648972ab
3 changed files with 54 additions and 10 deletions

38
flake.lock generated
View file

@ -21,7 +21,42 @@
"type": "github" "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": { "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": { "locked": {
"lastModified": 1692794066, "lastModified": 1692794066,
"narHash": "sha256-H0aG8r16dj0x/Wz6wQhQxc9V7AsObOiHPaKxQgH6Y08=", "narHash": "sha256-H0aG8r16dj0x/Wz6wQhQxc9V7AsObOiHPaKxQgH6Y08=",
@ -55,7 +90,8 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs", "minegrub-theme": "minegrub-theme",
"nixpkgs": "nixpkgs_2",
"nur": "nur" "nur": "nur"
} }
} }

View file

@ -12,12 +12,10 @@
home-manager.url = "github:nix-community/home-manager/release-23.05"; home-manager.url = "github:nix-community/home-manager/release-23.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
minegrub-theme.url = "github:Lxtharia/minegrub-theme/b6f8a3a7e2fd22d72e2dbdaf563ad0bcb5c78e45";
# TODO: Add any other flake you might need # TODO: Add any other flake you might need
# hardware.url = "github:nixos/nixos-hardware"; # 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: { outputs = { nixpkgs, home-manager, ... }@inputs: {
@ -27,7 +25,10 @@
nixos = nixpkgs.lib.nixosSystem { nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; # Pass flake inputs to our config specialArgs = { inherit inputs; }; # Pass flake inputs to our config
# > Our main nixos configuration file < # > Our main nixos configuration file <
modules = [ ./nixos/configuration.nix ]; modules = [
./nixos/configuration.nix
inputs.minegrub-theme.nixosModules.default
];
}; };
}; };

View file

@ -71,10 +71,16 @@
# boot.loader.systemd-boot.enable = true; # boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.grub.enable = true; boot.loader.grub = {
boot.loader.grub.device = "nodev"; enable = true;
boot.loader.grub.efiSupport = true; device = "nodev";
boot.loader.grub.useOSProber = true; efiSupport = true;
useOSProber = true;
minegrub-theme = {
enable = true;
# splash = ":3";
};
};
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver = { services.xserver = {
@ -190,6 +196,7 @@
wineWowPackages.stable wineWowPackages.stable
virt-manager virt-manager
podman podman
neofetch # for the grub theme
]; ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are