Skip to content

Commit

Permalink
hostconfig/gandalf: Mount boh-articles
Browse files Browse the repository at this point in the history
  • Loading branch information
traxys committed Sep 18, 2024
1 parent b63bfd9 commit 18e2c66
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
34 changes: 33 additions & 1 deletion hostconfig/gandalf/hm.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,42 @@
{ config, ... }:
{
config,
pkgs,
lib,
...
}:
{
programs.git = {
userName = "Quentin Boyer";
userEmail = config.extraInfo.email;
};

systemd.user.services = {
"rclone-boh-articles" = {
Unit = {
Description = "rclone: BoH website articles";
Documentation = "man:rclone(1)";
After = "network-online.target";
Wants = "network-online.target";
};
Service = {
Type = "notify";
ExecStartPre = "-${lib.getExe' pkgs.coreutils "mkdir"} -p %h/mnt/boh-articles";
ExecStart = ''
${lib.getExe pkgs.rclone} \
--config=%h/.config/rclone/rclone.conf \
--log-level INFO \
mount drive:Traxys %h/mnt/boh-articles \
--drive-shared-with-me
'';
ExecStop = "/run/wrappers/bin/fusermount -u %h/mnt/boh-articles";
Environment = [ "PATH=/run/wrappers/bin/:$PATH" ];
};
Install = {
WantedBy = [ "default.target" ];
};
};
};

traxys.waybar.modules.battery.enable = true;
home.stateVersion = "24.11";
}
1 change: 1 addition & 0 deletions minimal/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
just
bottom
keychain
rclone

# Useful for pandoc to latex
(texlive.combine {
Expand Down

0 comments on commit 18e2c66

Please sign in to comment.