From 9993c33bc9e9e2ed7c6a541ddc0aebe3a8350102 Mon Sep 17 00:00:00 2001 From: joy Date: Sun, 18 Aug 2024 10:50:53 +0200 Subject: [PATCH] sysyemd boot dektop --- home/zsh/ip.sh | 9 +++++++++ hosts/desktop/default.nix | 13 +------------ hosts/laptop/default.nix | 3 +-- 3 files changed, 11 insertions(+), 14 deletions(-) create mode 100755 home/zsh/ip.sh diff --git a/home/zsh/ip.sh b/home/zsh/ip.sh new file mode 100755 index 0000000..c48ae1e --- /dev/null +++ b/home/zsh/ip.sh @@ -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" + diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index 4452d88..8d4e7d5 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -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 = [ diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index e2305e9..1f4fb8f 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -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