Compare commits

..

No commits in common. "05613ee393a9b3614ffe6d264208bc853350ce1f" and "65621fdfa97346c518d065fb4023ec1c65814bbb" have entirely different histories.

2 changed files with 14 additions and 7 deletions

View file

@ -3,10 +3,8 @@
hostname=$(hostname)
if [[ $hostname == *"pc"* ]]; then
echo "This machine is identified as a Desktop PC."
sudo nixos-rebuild switch --flake ~/nix/#pc
elif [[ $hostname == *"laptop"* ]]; then
echo "This machine is identified as a Laptop."
sudo nixos-rebuild switch --flake ~/nix/#laptop
else
echo "Unable to determine the type of machine."

View file

@ -2,12 +2,21 @@
{
networking.hostName = "laptop";
networking.networkmanager.enable = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.timeout = 5;
#boot.loader.systemd-boot.enable = true;
#boot.loader.efi.canTouchEfiVariables = true;
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi"; # ← use the same mount point here.
};
grub = {
efiSupport = true;
#efiInstallAsRemovable = true; # in case canTouchEfiVariables doesn't work for your system
device = "nodev";
};
};
imports = [
../../modules
../../modules
./hardware.nix
inputs.home-manager.nixosModules.default
];