Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-11-19 10:31:29 +01:00
parent a3187e163d
commit 900f95169f
83 changed files with 1134 additions and 705 deletions

View file

@ -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" ];
};
};
***************************** */
};
*****************************
*/
}

View file

@ -1,7 +1,8 @@
{ lib
, pkgs
, config
, ...
{
lib,
pkgs,
config,
...
}:
{
home = {
@ -12,7 +13,10 @@
};
nix.settings = {
substituters = [ "https://cache.nixos.org" "https://attic.teepot.org/tee-pot" ];
substituters = [
"https://cache.nixos.org"
"https://attic.teepot.org/tee-pot"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"tee-pot:SS6HcrpG87S1M6HZGPsfo7d1xJccCGev7/tXc5+I4jg="
@ -36,4 +40,3 @@
};
};
}

View file

@ -1,7 +1,4 @@
{ lib
, config
, ...
}:
{ lib, config, ... }:
{
home.sessionPath = [ "$HOME/bin" ];
@ -27,4 +24,3 @@
xdg.enable = true;
xdg.mime.enable = true;
}

View file

@ -1,7 +1,4 @@
{ lib
, config
, ...
}:
{ lib, config, ... }:
{
home.sessionPath = [ "$HOME/bin" ];
@ -27,4 +24,3 @@
xdg.enable = true;
xdg.mime.enable = true;
}

View file

@ -1,7 +1,4 @@
{ lib
, config
, ...
}:
{ lib, config, ... }:
{
home.sessionPath = [ "$HOME/bin" ];
@ -63,4 +60,3 @@
xdg.enable = true;
xdg.mime.enable = true;
}

View file

@ -1,7 +1,4 @@
{ lib
, config
, ...
}:
{ lib, config, ... }:
{
home.sessionPath = [ "$HOME/bin" ];
@ -63,4 +60,3 @@
xdg.enable = true;
xdg.mime.enable = true;
}