1
Fork 0

Compare commits

..

No commits in common. "02677cf26eabf6bc425fce84a4ca60d6aef4c2f5" and "a62d8b41643c5f292df8711f3fc5f86782cbea0e" have entirely different histories.

1 changed files with 1 additions and 13 deletions

View File

@ -10,13 +10,7 @@ async function main(): Promise<void> {
.option("--hostname", "The machine's configuration to copy.", {
default: (await runAndReturnStdout({ cmd: ["hostname"] })).trim(),
})
.option("--diff", 'Output diffs between local and "/etc/nixos/" files.', {
standalone: true,
})
.option(
"--rebuild <rebuild:string>",
'Run "sudo nixos-rebuild <rebuild>" after copying.',
)
.option("--diff", 'Output diffs between local and "/etc/nixos/" files.')
.parse(Deno.args);
const sourceDir = new URL(`../nix/${options.hostname}/`, import.meta.url);
@ -45,12 +39,6 @@ async function main(): Promise<void> {
"/etc/nixos/",
],
}).status();
if (options.rebuild) {
await Deno.run({
cmd: ["sudo", "nixos-rebuild", options.rebuild],
}).status();
}
}
if (import.meta.main) {