Compare commits

...

2 commits

Author SHA1 Message Date
joygnu 05613ee393 clean 2024-07-03 16:00:19 +02:00
joygnu 78e45e7613 clean 2024-07-03 15:53:12 +02:00
2 changed files with 7 additions and 14 deletions

View file

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

View file

@ -2,19 +2,10 @@
{ {
networking.hostName = "laptop"; networking.hostName = "laptop";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
#boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
#boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader = { boot.loader.timeout = 5;
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 = [ imports = [
../../modules ../../modules
./hardware.nix ./hardware.nix