sysyemd boot dektop

This commit is contained in:
joy 2024-08-18 10:50:53 +02:00
parent 13b7b55a72
commit 9993c33bc9
3 changed files with 11 additions and 14 deletions

9
home/zsh/ip.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
local_ip=$(ip -4 addr show scope global | grep inet | awk '{print $2}' | cut -d/ -f1 | head -n 1)
public_ip=$(curl -s ifconfig.me)
echo "Local IP Address: $local_ip"
echo "Public IP Address: $public_ip"

View file

@ -2,18 +2,7 @@
{ {
networking.hostName = "desktop"; networking.hostName = "desktop";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
boot.loader.systemd-boot.enable = true;
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
grub = {
efiSupport = true;
device = "nodev";
};
};
services.hardware.openrgb.enable = true; services.hardware.openrgb.enable = true;
imports = [ imports = [

View file

@ -2,7 +2,6 @@
{ {
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;
imports = [ imports = [