dynamic rebuild-nixos based on current hostname

This commit is contained in:
Noah Masur committed 2022-09-24 16:53:16 +00:00
1 parent ae90b1041d
commit 0ac3aec208
1 file changed
+1 -1
+1 -1
View File
@@ -38,7 +38,7 @@
set option "--option substitute false" set option "--option substitute false"
end end
git -C ${config.dotfilesPath} add --intent-to-add --all 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 commandline --function execute
''; '';
}; };