diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 70d3b68..ce1893a 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -35,6 +35,7 @@ ../../modules/nixos/latex.nix ../../modules/nixos/development.nix ../../modules/nixos/user.nix ../../hostsModules/laptop/nixos/user.nix + ../../modules/nixos/notifications.nix ]; qt.enable = true; @@ -59,11 +60,9 @@ brightnessctl # control brightness udiskie # removable disk automounter for udisks jp # lightweight and flexible cli JSON parser - libnotify # Library that sends desktop notifications to a notification daemon cowsay cmatrix swww #wallpaper daemon - socat # Utility for bidirectional data transfer between two independent data channels (used to communicate between hyprland and swww to change wallpapers dinamically) libreoffice gruvbox-gtk-theme powertop @@ -83,7 +82,7 @@ # used for the framework 16 laptop framework-tool framework-tool-tui - fluffychat matrix-commander-rs # matrix client + fluffychat # matrix client # utils for dev pkg-config gdb diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index 8e0471b..f4f78ca 100755 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -66,25 +66,16 @@ home.packages = [ #scritps (pkgs.callPackage ../../modules/scripts/dontkillsteam.nix {}) # kill app (if it is steam put it in some background - (pkgs.callPackage ../../hostsModules/laptop/scripts/batterynotify.nix {}) - (pkgs.callPackage ../../hostsModules/laptop/scripts/batterywarning.nix {}) - - # checks if matrix-commander-rs is installed and logged in - (pkgs.callPackage ../../hostsModules/laptop/scripts/checkMatrix.nix {}) - (pkgs.callPackage ../../modules/scripts/weather.nix {}) (pkgs.callPackage ../../modules/scripts/wallpaper.nix {}) (pkgs.callPackage ../../modules/scripts/mountkdrive.nix {}) (pkgs.callPackage ../../modules/scripts/colorpicker.nix {}) (pkgs.callPackage ../../modules/scripts/killall.nix {}) # kill all windows except focused window - (pkgs.callPackage ../../modules/scripts/gitnotify.nix {}) (pkgs.callPackage ../../modules/scripts/tomato.nix {}) (pkgs.callPackage ../../modules/scripts/librewolfprofiles.nix {}) (pkgs.callPackage ../../modules/scripts/btm.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/checkKdrive.nix {}) - (pkgs.callPackage ../../hostsModules/laptop/qt/qtbatticon.nix {}) #pkgs pkgs.gruvbox-gtk-theme diff --git a/modules/nixos/notifications.nix b/modules/nixos/notifications.nix new file mode 100644 index 0000000..cdbcf74 --- /dev/null +++ b/modules/nixos/notifications.nix @@ -0,0 +1,20 @@ +# notifications server is set by caelestia-shell. See ../home-manager/caelestia.nix +{ + pkgs, + ... +}: +{ + environment.systemPackages = with pkgs; [ + libnotify # Library that sends desktop notifications to a notification daemon + socat # Utility for bidirectional data transfer between two independent data channels (used to communicate between hyprland and swww to change wallpapers dinamically) + matrix-commander-rs # matrix client used to send notifications from scripts to my phone + # battery notifications + (pkgs.callPackage ../../hostsModules/laptop/scripts/batterynotify.nix {}) + (pkgs.callPackage ../../hostsModules/laptop/scripts/batterywarning.nix {}) + # checks if matrix-commander-rs is installed and logged in + (pkgs.callPackage ../../hostsModules/laptop/scripts/checkMatrix.nix {}) + (pkgs.callPackage ../../modules/scripts/gitnotify.nix {}) # check if git is set up + (pkgs.callPackage ../../modules/scripts/checkKdrive.nix {}) # check if kdrive is set up with rclone + + ]; +}