perso-desktop: Configure systemd to use Windows boot
All checks were successful
check / check (push) Successful in 30s

This commit is contained in:
Florian RICHER 2025-01-03 21:23:08 +01:00
parent 4c3db0d50c
commit 378b01eecf
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
2 changed files with 15 additions and 1 deletions

View file

@ -14,7 +14,15 @@
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot = {
enable = true;
windows = {
"11-pro" = {
title = "Windows 11 Pro";
efiDeviceHandle = "HD1b";
};
};
};
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos-desktop-perso"; # Define your hostname.

View file

@ -24,6 +24,12 @@
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/efi" =
{ device = "/dev/disk/by-uuid/BEC2-DD2E";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/var/lib/swapfile"; size = 32*1024; }
];