mirror of
https://github.com/davegallant/nix-config
synced 2025-08-05 10:33:39 +00:00
Rename machines to hosts
This commit is contained in:
@@ -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.
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
2
justfile
2
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 .
|
||||
|
Reference in New Issue
Block a user