@andrew0
@lemmy.dbzer0.comHi! I am trying to automate my install process by creating a json file that can be used by archinstall
(example). One of the example shows how you can run custom commands to get paru
(yay
, but written in Rust):
"custom-commands": [
"cd /home/devel; git clone https://aur.archlinux.org/paru.git",
"chown -R devel:devel /home/devel/paru",
]
However, their example doesn't provide any further information about installing packages with paru. I would like to install some stuff just for my user.
My idea was the following:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
)I need to install a few packages that are not in the official repository, as well as moving my dotfiles in /home/user/.config and making sure everything is accessible by that user. If there are any better approaches to this, I would be glad to hear them!
An example of the script I am planning to use after running archinstall:
::: spoiler spoiler
#!/bin/bash
# Find all users on the system
for user in $(ls /home); do
if [ "$user" != "lost+found" ]; then
users+=($user)
fi
done
# If there is more than one user, ask which user to install for
if [ ${#users[@]} -gt 1 ]; then
echo "Multiple users found on system. Please select a user to install for:"
select user in "${users[@]}"; do
if [[ " ${users[@]} " =~ " ${user} " ]]; then
break
else
echo "Invalid selection"
fi
done
else
user=${users[0]}
fi
echo "Installing for user $user"
# chroot as the user
arch-chroot -u $user /mnt/archinstall # This only opens bash, but I am working on it :D
cd /home/$user
# Install paru
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
# Install stuff with paru
paru -S tlrc --noconfirm
:::
As the title implies, should I do it? I love Arch so far, and I can fix most issues that pop out. However, I sometimes wish to start fresh without too much hassle, but I get a feeling NixOS isn't as mature as Arch.
Have any of you used both, and if so, what do you miss from Arch? What are you grateful for in NixOS?
Hi everyone! I'll soon take the DP-100 exam for Microsoft Azure, and I was interested in finding more leaked exam questions. At the moment, I was using examtopics for this, but it sucks because it basically cuts you off halfway through.
I heard there are some private trackers that specialize in exam questions, such as LearnFlakes, but I do not have anyone that can invite me to them. Therefore, I was wondering if there is another way to find the information I need for this exam.
Do you know any other sources that are fully free?