home/modules/baremacs:init

move emacs to home-manager
This commit is contained in:
2022-03-18 01:50:43 +05:30
parent ed3bf181ef
commit e2e9d5ec0f
12 changed files with 367 additions and 195 deletions

View File

@@ -4,14 +4,9 @@ echo "You're about to switch your home-manager configuration as '$USER'"
read -p "Continue (y/n)?" conf
if [[ ${conf,,} =~ ^(y|yes)$ ]]; then
read -p "Do you want to use sudo instead of doas? (y/n)" conf2
elev="doas"
if [[ ${conf2,,} =~ ^(y|yes)$ ]]; then
elev="sudo"
fi
$elev nix build .\#hm-configs.$USER.activationPackage -o hm-result
nix build .\#hm-configs.$USER.activationPackage -o hm-result &&
./hm-result/activate
$elev unlink hm-result
unlink hm-result
else
echo "If this is not you, then log into your profile first!"
exit 1