sysyemd boot dektop
This commit is contained in:
parent
13b7b55a72
commit
9993c33bc9
9
home/zsh/ip.sh
Executable file
9
home/zsh/ip.sh
Executable 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"
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in a new issue