unify home-manager configurations of workmac and main laptop
- manually inspected changes of "workmac" branch - modularised out some config parts into modules
This commit is contained in:
parent
2bdff39416
commit
f14b290937
12 changed files with 875 additions and 472 deletions
19
home/scripts/ssh-loop-fc.nix
Normal file
19
home/scripts/ssh-loop-fc.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
''
|
||||
ssh-loop () {
|
||||
setopt shwordsplit
|
||||
local hosts=$1
|
||||
local cmd=$2
|
||||
|
||||
for x in $1; do echo $x; ${pkgs.openssh}/bin/ssh $x.fcio.net -o StrictHostKeyChecking=no -C "$2"; done
|
||||
}
|
||||
|
||||
ssh-loop-parallel () {
|
||||
setopt shwordsplit
|
||||
local hosts=$1
|
||||
local cmd=$2
|
||||
|
||||
for x in $1; do echo $x; ${pkgs.openssh}/bin/ssh $x.fcio.net -o StrictHostKeyChecking=no -C "$2" 2>&1 | sed -e "s/^/$x: /;" & done
|
||||
wait
|
||||
}
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue