56 lines
1.4 KiB
Nix
56 lines
1.4 KiB
Nix
{
|
|
inputs,
|
|
config,
|
|
home,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
options = {
|
|
crony.shell-additions.enable = lib.mkEnableOption "Enable additional shell software.";
|
|
};
|
|
|
|
config = lib.mkIf config.crony.shell-additions.enable {
|
|
home.packages = with pkgs; [
|
|
android-tools
|
|
nix-output-monitor
|
|
nvd
|
|
nurl
|
|
# termsonic
|
|
inputs.agenix.packages.${stdenv.hostPlatform.system}.default
|
|
inputs.deploy-rs.packages.${stdenv.hostPlatform.system}.default
|
|
inputs.hb-downloader.packages.${stdenv.hostPlatform.system}.default
|
|
inputs.note.packages.${stdenv.hostPlatform.system}.default
|
|
beets
|
|
croc
|
|
];
|
|
|
|
# Setup rclone
|
|
programs.rclone = {
|
|
enable = true;
|
|
remotes = {
|
|
homeassistant = {
|
|
config = {
|
|
type = "sftp";
|
|
host = "assistant.home.cronyakatsuki.xyz";
|
|
user = "root";
|
|
key_file = "${config.home.homeDirectory}/.ssh/main";
|
|
};
|
|
mounts = {
|
|
"/var/lib/homeassistant" = {
|
|
enable = true;
|
|
mountPoint = "/home/crony/docs/assistant";
|
|
options = {
|
|
default-permissions = true;
|
|
vfs-cache-mode = "writes";
|
|
buffer-size = "64M";
|
|
multi-thread-streams = 4;
|
|
multi-thread-cutoff = "250M";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|