mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
kdrive: add warning if it failed
This commit is contained in:
@@ -105,6 +105,7 @@
|
|||||||
source = "${pkgs.gpu-screen-recorder}/bin/gsr-kms-server";
|
source = "${pkgs.gpu-screen-recorder}/bin/gsr-kms-server";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Enable the GNOME Desktop Environment.
|
# Enable the GNOME Desktop Environment.
|
||||||
# services.displayManager.gdm.enable = true;
|
# services.displayManager.gdm.enable = true;
|
||||||
# services.desktopManager.gnome.enable = true;
|
# services.desktopManager.gnome.enable = true;
|
||||||
|
|||||||
@@ -85,6 +85,8 @@
|
|||||||
(pkgs.callPackage ../../modules/scripts/man.nix {})
|
(pkgs.callPackage ../../modules/scripts/man.nix {})
|
||||||
(pkgs.callPackage ../../modules/scripts/trimmer.nix {})
|
(pkgs.callPackage ../../modules/scripts/trimmer.nix {})
|
||||||
(pkgs.callPackage ../../modules/scripts/syllabes.nix {}) # python script to get number of syllabes in french
|
(pkgs.callPackage ../../modules/scripts/syllabes.nix {}) # python script to get number of syllabes in french
|
||||||
|
(pkgs.callPackage ../../modules/scripts/checkKdrive.nix {})
|
||||||
|
|
||||||
(pkgs.callPackage ../../hostsModules/laptop/qt/qtbatticon.nix {})
|
(pkgs.callPackage ../../hostsModules/laptop/qt/qtbatticon.nix {})
|
||||||
#pkgs
|
#pkgs
|
||||||
pkgs.gruvbox-gtk-theme
|
pkgs.gruvbox-gtk-theme
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
{
|
{
|
||||||
config,
|
pkgs-unstable,
|
||||||
pkgs,
|
|
||||||
agenix,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
programs.rclone = {
|
programs.rclone = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs-unstable.rclone;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
/nix/store/c0iwr0v7bjfka094wv6hd1hjmrkx9hm9-options.json
|
/nix/store/54sf8q14ygh45qvr20w46b9qcyvdc5ld-options.json
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
rclone,
|
||||||
|
matrix-commander-rs,
|
||||||
|
libnotify,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
writeShellApplication {
|
||||||
|
name = "custom-checkKdrive";
|
||||||
|
runtimeInputs = [
|
||||||
|
rclone
|
||||||
|
matrix-commander-rs
|
||||||
|
libnotify
|
||||||
|
];
|
||||||
|
text = ''
|
||||||
|
set +e
|
||||||
|
|
||||||
|
output=$(rclone ls kdrive: 2>&1)
|
||||||
|
status=$?
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ $status -eq 0 ]; then
|
||||||
|
echo "kdrive OK"
|
||||||
|
else
|
||||||
|
echo "kdrive rclone failed with error: $output"
|
||||||
|
notify-send "rclone kdrive failed" "$output"
|
||||||
|
matrix-commander-rs --verbose -m "rclone kdrive failed.<br>Error: <pre>$output</pre><br><a href=\"https://matrix.to/#/@notificationbot_0000:matrix.org\">@notificationbot_0000</a>" \
|
||||||
|
--html \
|
||||||
|
-r "\!7j-78_02dHROeLj4Ns8F12eo4IiZGv4zNsQ_1-WlyIU"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user