From 4881a205ea7f27abaf8908fdae3e7cf1ab360326 Mon Sep 17 00:00:00 2001 From: Superredstone Date: Tue, 6 May 2025 17:29:58 +0200 Subject: [PATCH] Fixed a bug in Makefile --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a6203a6..496f72e 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,12 @@ -HOSTNAME ?= $(hostname) +HOSTNAME = $(shell hostname) all: @echo "No command provided" + +machine: + @echo "${HOSTNAME}" + switch: nixos-rebuild switch --flake ".#${HOSTNAME}" --use-remote-sudo