move host names to flakes

This commit is contained in:
2026-02-27 21:14:37 +01:00
parent cbc68e2b5a
commit 997e669803
2 changed files with 48 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
{ isNixOS, ... }:
{ isNixOS, hostName, ... }:
{
programs.fish = {
@@ -45,7 +45,7 @@
set -l rel_file (realpath --relative-to=$config_dir $file)
if nh home switch $config_dir -c ${if isNixOS then "nixos" else "arch"}
if nh home switch $config_dir -c ${hostName}
git add -A
set commit_msg "update: $rel_file"
git commit -m "$commit_msg"
@@ -61,7 +61,7 @@
reload_dotfiles = {
body = # fish
"nh home switch ~/.config/home-manager -c ${if isNixOS then "nixos" else "arch"}";
"nh home switch ~/.config/home-manager -c ${hostName}";
};
ls = {