fixes small bug with update.sh
readded term welcome screen to dotf cleaned up 1password.nix
This commit is contained in:
parent
32ce39cb21
commit
13c2365b7b
@ -170,9 +170,6 @@ homemanager() {
|
|||||||
# Parse arguments
|
# Parse arguments
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|
||||||
# Shift the first argument since this is the script name
|
|
||||||
shift
|
|
||||||
|
|
||||||
if [ "$#" -eq 0 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
printfe "%s\n" "yellow" "No options passed, running full update..."
|
printfe "%s\n" "yellow" "No options passed, running full update..."
|
||||||
|
|
||||||
|
12
bin/dotf
12
bin/dotf
@ -25,7 +25,16 @@ update() {
|
|||||||
printfe "%s\n" "red" "Error: Update script not found or not executable"
|
printfe "%s\n" "red" "Error: Update script not found or not executable"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
"$update_script" "$@"
|
"$update_script" $@
|
||||||
|
}
|
||||||
|
|
||||||
|
term() {
|
||||||
|
local term_script="$DOTFILES_BIN/actions/term.sh"
|
||||||
|
if [[ ! -x "$term_script" ]]; then
|
||||||
|
printfe "%s\n" "red" "Error: Terminal script not found or not executable"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
"$term_script" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
@ -97,6 +106,7 @@ main() {
|
|||||||
case "${1:-help}" in
|
case "${1:-help}" in
|
||||||
update) shift; update "$@" ;;
|
update) shift; update "$@" ;;
|
||||||
help) shift; help "$@" ;;
|
help) shift; help "$@" ;;
|
||||||
|
term) shift; term "$@" ;;
|
||||||
secrets) shift; secrets "$@" ;;
|
secrets) shift; secrets "$@" ;;
|
||||||
*) help ;;
|
*) help ;;
|
||||||
esac
|
esac
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
# 1Password
|
# Enables the 1Password CLI
|
||||||
programs._1password.enable = true;
|
programs._1password = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enables the 1Password desktop app
|
||||||
programs._1password-gui = {
|
programs._1password-gui = {
|
||||||
enable = true;
|
enable = true;
|
||||||
polkitPolicyOwners = [ "menno" ];
|
polkitPolicyOwners = [ "menno" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user