fixes small bug with update.sh

readded term welcome screen to dotf
cleaned up 1password.nix
This commit is contained in:
Menno van Leeuwen 2024-11-09 03:56:39 +01:00
parent 32ce39cb21
commit 13c2365b7b
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
3 changed files with 17 additions and 6 deletions

View File

@ -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..."

View File

@ -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

View File

@ -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" ];