dynamic rebuild-nixos based on current hostname

This commit is contained in:
Noah Masur 2022-09-24 16:53:16 +00:00
parent ae90b1041d
commit 0ac3aec208

View File

@ -38,7 +38,7 @@
set option "--option substitute false"
end
git -C ${config.dotfilesPath} add --intent-to-add --all
commandline -r "doas nixos-rebuild switch $option --flake ${config.dotfilesPath}"
commandline -r "doas nixos-rebuild switch $option --flake ${config.dotfilesPath}#${config.networking.hostName}"
commandline --function execute
'';
};