nix fmt
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
a3187e163d
commit
900f95169f
83 changed files with 1134 additions and 705 deletions
|
@ -1,7 +1,8 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
, config
|
||||
, ...
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.sessionPath = [ "$HOME/bin" ];
|
||||
|
@ -32,43 +33,44 @@
|
|||
xdg.enable = true;
|
||||
xdg.mime.enable = true;
|
||||
|
||||
/* *****************************************
|
||||
systemd.user.services = {
|
||||
render_blog = {
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
Environment = "PATH=/run/current-system/sw/bin";
|
||||
ExecStart = toString (
|
||||
pkgs.writeShellScript "render_blog.sh" ''
|
||||
set -eou pipefail
|
||||
set -x
|
||||
DIR=/var/tmp/blog.$$
|
||||
rm -fr $DIR
|
||||
mkdir -p $DIR
|
||||
cd $DIR
|
||||
echo $HOME
|
||||
set
|
||||
git config --list
|
||||
git clone --recurse-submodules https://git.hoyer.xyz/harald/blog.git
|
||||
cd blog
|
||||
./build.sh
|
||||
cd /var/tmp
|
||||
rm -fr $DIR
|
||||
''
|
||||
);
|
||||
/*
|
||||
*****************************************
|
||||
systemd.user.services = {
|
||||
render_blog = {
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
Environment = "PATH=/run/current-system/sw/bin";
|
||||
ExecStart = toString (
|
||||
pkgs.writeShellScript "render_blog.sh" ''
|
||||
set -eou pipefail
|
||||
set -x
|
||||
DIR=/var/tmp/blog.$$
|
||||
rm -fr $DIR
|
||||
mkdir -p $DIR
|
||||
cd $DIR
|
||||
echo $HOME
|
||||
set
|
||||
git config --list
|
||||
git clone --recurse-submodules https://git.hoyer.xyz/harald/blog.git
|
||||
cd blog
|
||||
./build.sh
|
||||
cd /var/tmp
|
||||
rm -fr $DIR
|
||||
''
|
||||
);
|
||||
};
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
};
|
||||
};
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.timers = {
|
||||
render_blog = {
|
||||
Timer = {
|
||||
OnCalendar = "hourly";
|
||||
systemd.user.timers = {
|
||||
render_blog = {
|
||||
Timer = {
|
||||
OnCalendar = "hourly";
|
||||
};
|
||||
Install.WantedBy = [ "timers.target" ];
|
||||
};
|
||||
Install.WantedBy = [ "timers.target" ];
|
||||
};
|
||||
};
|
||||
***************************** */
|
||||
};
|
||||
*****************************
|
||||
*/
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue