sysyemd boot dektop

This commit is contained in:
joygnu 2024-08-18 10:50:53 +02:00
parent 3635d16e33
commit 936fb6f5d1
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.networkmanager.enable = true;
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
grub = {
efiSupport = true;
device = "nodev";
};
};
boot.loader.systemd-boot.enable = true;
services.hardware.openrgb.enable = true;
imports = [

View file

@ -2,8 +2,7 @@
{
networking.hostName = "laptop";
networking.networkmanager.enable = true;
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.enable = true;
imports = [
../../modules