From 143bd369c4a2ee4687caaf7c7e0d4bd00b233024 Mon Sep 17 00:00:00 2001 From: Gustav Bruhn Date: Wed, 23 Apr 2025 08:00:44 +0200 Subject: [PATCH] boot windows --- hosts/desktop/configuration.nix | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 40cb7fe..4e4b767 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -8,12 +8,27 @@ # Include the results of the hardware scan. ./hardware-configuration.nix inputs.home-manager.nixosModules.default - # ../../modules/nixos/cosmic.nix - ../../modules/nixos/niri.nix + ../../modules/nixos/cosmic.nix + # ../../modules/nixos/niri.nix ]; # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + boot.loader = { + efi.canTouchEfiVariables = true; + systemd-boot = { + enable = true; + configurationLimit = 5; + consoleMode = "max"; + windows = { + "nvme0n1p1" = { + title = "Windows 11"; + efiDeviceHandle = "FS1"; + sortKey = "a_windows"; + }; + }; + }; + }; + + hardware.enableAllFirmware = true; networking.hostName = "desktop"; # Define your hostname.