Commit 632d67e0 authored by Christopher League's avatar Christopher League
Browse files

More atom packages

parent da5e98ba
{pkgs, ...}: {pkgs, lib, ...}:
let let
# Could make this into a derivation if I need to patch any # Could make this into a derivation if I need to patch any
# paths into the config files. # paths into the config files.
skel = ./skel; skel = ./skel;
rsync-args = "--copy-links --chmod u+w --verbose --recursive ${skel}/ $HOME"; rsync-args = "--copy-links --chmod u+w --verbose --recursive ${skel}/ $HOME";
atom-pkgs = ["atom-html-preview"
"lorem"
"build" "busy-signal" # build requires busy-signal
];
in in
{ {
home-manager.users.student = { home-manager.users.student = {
...@@ -17,8 +22,8 @@ in ...@@ -17,8 +22,8 @@ in
echo echo
echo 'Press enter to proceed or control-C to cancel.' echo 'Press enter to proceed or control-C to cancel.'
read answer read answer
apm install atom-html-preview
rsync ${rsync-args} rsync ${rsync-args}
${lib.concatMapStringsSep "\n" (p: "apm install ${p}") atom-pkgs}
echo echo
echo 'Configuration files reset, we will now log out' echo 'Configuration files reset, we will now log out'
echo 'and back in for changes to take effect.' echo 'and back in for changes to take effect.'
...@@ -34,12 +39,12 @@ in ...@@ -34,12 +39,12 @@ in
before = []; before = [];
after = []; after = [];
data = '' data = ''
for pkg in atom-html-preview lorem; do $DRY_RUN_CMD rsync --ignore-existing ${rsync-args}
for pkg in ${lib.concatStringsSep " " atom-pkgs}; do
if [[ ! -d ~/.atom/packages/$pkg ]]; then if [[ ! -d ~/.atom/packages/$pkg ]]; then
$DRY_RUN_CMD apm install $pkg $DRY_RUN_CMD apm install $pkg
fi fi
done done
$DRY_RUN_CMD rsync --ignore-existing ${rsync-args}
''; '';
}; };
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment