hosts/vulcan: add stlas function
This commit is contained in:
parent
0166afa54f
commit
e2847e1286
1 changed files with 8 additions and 0 deletions
|
@ -32,5 +32,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nix.settings.use-xdg-base-directories = true;
|
nix.settings.use-xdg-base-directories = true;
|
||||||
|
|
||||||
|
programs.zsh.initExtra = ''
|
||||||
|
stlas() {
|
||||||
|
user=$1
|
||||||
|
shift 1
|
||||||
|
exec sudo systemctl --machine ''${user}@.host "$@"
|
||||||
|
}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue