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
|
||||
####################################################################################################
|
||||
|
||||
# Shift the first argument since this is the script name
|
||||
shift
|
||||
|
||||
if [ "$#" -eq 0 ]; then
|
||||
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"
|
||||
return 1
|
||||
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() {
|
||||
@ -97,6 +106,7 @@ main() {
|
||||
case "${1:-help}" in
|
||||
update) shift; update "$@" ;;
|
||||
help) shift; help "$@" ;;
|
||||
term) shift; term "$@" ;;
|
||||
secrets) shift; secrets "$@" ;;
|
||||
*) help ;;
|
||||
esac
|
||||
|
@ -1,7 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
# 1Password
|
||||
programs._1password.enable = true;
|
||||
# Enables the 1Password CLI
|
||||
programs._1password = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Enables the 1Password desktop app
|
||||
programs._1password-gui = {
|
||||
enable = true;
|
||||
polkitPolicyOwners = [ "menno" ];
|
||||
|
Loading…
x
Reference in New Issue
Block a user