From ecf96376739115d8531182eddbf9fced3aa15830 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sat, 12 Apr 2025 23:34:57 -0400 Subject: [PATCH] Rename machines to hosts --- README.md | 2 +- flake.nix | 4 ++-- {machines => hosts}/hephaestus/configuration.nix | 0 {machines => hosts}/zelus/configuration.nix | 0 justfile | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename {machines => hosts}/hephaestus/configuration.nix (100%) rename {machines => hosts}/zelus/configuration.nix (100%) diff --git a/README.md b/README.md index a658edb..56a6af1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # nix-config -This repo stores nix configuration to manage my machines running [NixOS](https://nixos.org/) and macOS. +This repo stores nix configuration to manage my hosts running [NixOS](https://nixos.org/) and macOS. The configuration is very specific to my own machines and setup, but it may be a useful reference for anyone else learning or experimenting with nix, whether it be on a personal workstation or a server environment. diff --git a/flake.nix b/flake.nix index a4cebcd..50ffe82 100644 --- a/flake.nix +++ b/flake.nix @@ -48,7 +48,7 @@ }; modules = [ ./fonts.nix - ./machines/hephaestus/configuration.nix + ./hosts/hephaestus/configuration.nix ./packages.nix ./services/netdata/default.nix ./upgrade-diff.nix @@ -118,7 +118,7 @@ modules = [ home-manager.darwinModules.home-manager stylix.darwinModules.stylix - ./machines/zelus/configuration.nix + ./hosts/zelus/configuration.nix ./packages.nix ./upgrade-diff.nix diff --git a/machines/hephaestus/configuration.nix b/hosts/hephaestus/configuration.nix similarity index 100% rename from machines/hephaestus/configuration.nix rename to hosts/hephaestus/configuration.nix diff --git a/machines/zelus/configuration.nix b/hosts/zelus/configuration.nix similarity index 100% rename from machines/zelus/configuration.nix rename to hosts/zelus/configuration.nix diff --git a/justfile b/justfile index 05ea58b..2298c79 100644 --- a/justfile +++ b/justfile @@ -8,7 +8,7 @@ arch := `uname -s` cmd := if arch == "Linux" { "sudo nixos-rebuild --use-remote-sudo" } else { "darwin-rebuild" } rebuild: - $cmd switch --flake . -I nixos-config="machines/$(hostname)/configuration.nix" + $cmd switch --flake . -I nixos-config="hosts/$(hostname)/configuration.nix" rollback: $cmd switch --rollback --flake .