Fix if statements

This commit is contained in:
Daniel Flanagan 2020-11-07 21:57:54 -06:00
parent aa2dda3bf7
commit 165400b69e
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -67,20 +67,20 @@ setup_dotfiles() {
} }
distro_specific_root_setup() { distro_specific_root_setup() {
if test $is_nixos -eq 1 then if test $is_nixos -eq 1; then
symlink_nixos "$root_home$dotfiles/env/nix/" symlink_nixos "$root_home$dotfiles/env/nix/"
add_unstable_channel add_unstable_channel
nixos-rebuild switch nixos-rebuild switch
elif test $is_arch_linux -eq 1 elif test $is_arch_linux -eq 1; then
# TODO: install any necessary packages for remaining setup portion # TODO: install any necessary packages for remaining setup portion
fi fi
} }
distro_specific_user_setup() { distro_specific_user_setup() {
if test $is_nixos -eq 1 then if test $is_nixos -eq 1; then
FUNC=$(declare -f symlink_nixos) FUNC=$(declare -f symlink_nixos)
sudo sh -c "$FUNC; symlink_nixos \"$daniel_home$dotfiles/env/nix/\"" sudo sh -c "$FUNC; symlink_nixos \"$daniel_home$dotfiles/env/nix/\""
elif test $is_arch_linux -eq 1 elif test $is_arch_linux -eq 1; then
# TODO: setup all the things # TODO: setup all the things
fi fi
} }