making features more self-contained....

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-07-24 13:39:02 +03:00
parent 46f43c2ca3
commit c7641efe61

View File

@ -66,6 +66,9 @@ FEATURES=(
start-services start-services
start-user-services start-user-services
bashctrl
syncthing
# these can depend on some services like syncthing... # these can depend on some services like syncthing...
user-link user-link
user-copy user-copy
@ -111,7 +114,7 @@ PKG_DNF=(
gparted gdisk testdisk gparted gdisk testdisk
# networking... # networking...
cronie syncthing tor obfs4 cronie tor obfs4
youtube-dl qbittorrent youtube-dl qbittorrent
# tools... # tools...
@ -180,7 +183,6 @@ SERVICES_START=(
) )
SERVICES_USER_START=( SERVICES_USER_START=(
syncthing
) )
@ -209,18 +211,17 @@ ALL_FEATURES=(
snap snap
npm npm
#keyd
start-services start-services
# user.. # user..
dir dir
syncthing
bashctrl
user-link user-link
user-copy user-copy
#syncthing
start-user-services start-user-services
# keep this last... # keep this last...
@ -299,6 +300,7 @@ function feature-start-user-services(){
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function feature-keyd(){ ( function feature-keyd(){ (
@ mkdir -p ~/work/EXTERNAL
@ cd ~/work/EXTERNAL @ cd ~/work/EXTERNAL
@ git clone https://github.com/rvaiya/keyd @ git clone https://github.com/rvaiya/keyd
@ cd keyd @ cd keyd
@ -313,11 +315,12 @@ function feature-keyd(){ (
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function feature-bash(){ ( function feature-bashctrl(){ (
@ mkdir -p ~/work/
@ cd ~/work/ @ cd ~/work/
@ git clone git@github.com:flynx/bashctrl @ git clone git@github.com:flynx/bashctrl
@ cd bashctrl @ cd bashctrl
@ ./bashctrl -y setup \ @ ./bashctrl -y setup
) } ) }
@ -351,6 +354,10 @@ function feature-gnome(){
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function feature-syncthing(){ function feature-syncthing(){
@ mkdir -p ~/Sync/ALL
@ sudo dnf install syncthing
@ sudo systemctl --user enable --now syncthing
#@ sudo systemctl --user start syncthing
# XXX can we do this from CLI??? # XXX can we do this from CLI???
# need to: # need to:
# - link device # - link device