I changed bootloader to grub in the configuration and sudo nixos-rebuild boot --flake ~/NixOS/ --install-bootloader
doesn’t give any error, but when I reboot systemd-boot opens where my new nixos generation is missing
Here’s my config:
{
config,
pkgs,
catppuccin,
...
}:
{
imports = [
./hardware-configuration.nix
];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nix.gc = {
automatic = true;
dates = "weekly";
options = "-d";
};
console.catppuccin.enable = true;
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
catppuccin.enable = true;
};
# boot.loader.systemd-boot.enable = true;
# boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos";
networking.networkmanager.enable = true;
time.timeZone = "Europe/Moscow";
i18n.defaultLocale = "ru_RU.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "ru_RU.UTF-8";
LC_IDENTIFICATION = "ru_RU.UTF-8";
LC_MEASUREMENT = "ru_RU.UTF-8";
LC_MONETARY = "ru_RU.UTF-8";
LC_NAME = "ru_RU.UTF-8";
LC_NUMERIC = "ru_RU.UTF-8";
LC_PAPER = "ru_RU.UTF-8";
LC_TELEPHONE = "ru_RU.UTF-8";
LC_TIME = "ru_RU.UTF-8";
};
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
services.xserver.displayManager.gdm.wayland = true;
services.xserver.xkb = {
layout = "us";
variant = "";
};
# Enable sound with pipewire.
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
users.users.inari = {
isNormalUser = true;
description = "Maxim";
extraGroups = [
"networkmanager"
"wheel"
];
shell = pkgs.fish;
};
programs.fish.enable = true;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
home-manager
zed-editor
blackbox-terminal
nixd
nautilus
gnome-boxes
gnome-calculator
gnome-disk-utility
fragments
nautilus-open-in-blackbox
heroic
gnome-tweaks
protonup
solaar
ollama-cuda
bat
ripgrep
fzf
zoxide
devenv
eza
telegram-desktop
oh-my-posh
nixfmt-rfc-style
fd
dua
epapirus-icon-theme
zen-browser
catnap
yazi
nil
gnomeExtensions.dash-to-dock
gnomeExtensions.blur-my-shell
gnomeExtensions.appindicator
gnomeExtensions.vitals
gnomeExtensions.gsconnect
gnomeExtensions.clipboard-indicator
gnomeExtensions.rounded-window-corners-reborn
gnomeExtensions.solaar-extension
];
programs.nix-ld.enable = true;
programs.steam.enable = true;
programs.steam.gamescopeSession.enable = true;
programs.gamemode.enable = true;
nixpkgs.config.packageOverrides = pkgs: {
zen-browser = pkgs.callPackage ./nonNixPackages/zen-browser/default.nix { };
catnap = pkgs.callPackage ./nonNixPackages/catnap/default.nix { };
};
services.ollama.enable = true;
fonts.packages = with pkgs; [
jetbrains-mono
fira-code-nerdfont
];
services.gnome.core-utilities.enable = false;
environment.gnome.excludePackages = [ pkgs.gnome-tour ];
services.xserver.excludePackages = [ pkgs.xterm ];
services.xserver.desktopManager.xterm.enable = false;
documentation.nixos.enable = false;
programs.nano.enable = false;
system.stateVersion = "24.05"; # Did you read the comment?
}