diff --git a/flake.lock b/flake.lock index 47319f0..f9c603c 100755 --- a/flake.lock +++ b/flake.lock @@ -183,6 +183,29 @@ "type": "github" } }, + "nixpkgs-notifier": { + "inputs": { + "flake-utils": [ + "flake-utils" + ], + "nixpkgs": [ + "nixpkgs-unstable" + ] + }, + "locked": { + "lastModified": 1780484508, + "narHash": "sha256-tpGRft5UXH92gtfrjWWHWovBUtpnSIDvPzJGfNnEVPM=", + "owner": "tomasriveral", + "repo": "nixpkgs-notifier", + "rev": "f028797e06324a46dca87101f99e7679871aa741", + "type": "github" + }, + "original": { + "owner": "tomasriveral", + "repo": "nixpkgs-notifier", + "type": "github" + } + }, "nixpkgs-unstable": { "locked": { "lastModified": 1780336545, @@ -217,7 +240,9 @@ }, "notewrapper": { "inputs": { - "flake-utils": "flake-utils", + "flake-utils": [ + "flake-utils" + ], "nixpkgs": [ "nixpkgs-unstable" ] @@ -261,11 +286,13 @@ "inputs": { "caelestia-shell": "caelestia-shell", "flake-parts": "flake-parts", + "flake-utils": "flake-utils", "home-manager": "home-manager", "import-tree": "import-tree", "microPlugins-vivify": "microPlugins-vivify", "nixos-grub-themes": "nixos-grub-themes", "nixpkgs": "nixpkgs_2", + "nixpkgs-notifier": "nixpkgs-notifier", "nixpkgs-unstable": "nixpkgs-unstable", "notewrapper": "notewrapper" } diff --git a/modules/applications/hyprland.nix b/modules/applications/hyprland.nix index 3ef3ca9..016d89d 100644 --- a/modules/applications/hyprland.nix +++ b/modules/applications/hyprland.nix @@ -41,6 +41,7 @@ wayland.windowManager.hyprland.settings = { exec-once = [ "qtbatticon" # custom battery tray + "nixpkgs-notifier" ]; monitor = [ "eDP-1, highres@highrr, 0x0, 1" diff --git a/modules/hosts/laptop.nix b/modules/hosts/laptop.nix index 09acb2a..aa040e1 100644 --- a/modules/hosts/laptop.nix +++ b/modules/hosts/laptop.nix @@ -24,6 +24,7 @@ browsers caelestia development + development documentation disk disk-laptop diff --git a/modules/utilities/development.nix b/modules/utilities/development.nix index 31cb404..5fff03a 100644 --- a/modules/utilities/development.nix +++ b/modules/utilities/development.nix @@ -34,4 +34,23 @@ inputs.nixpkgs-notifier.packages.${pkgs.system}.default ]; }; + flake.homeModules.development = _: { + home.file.".config/nixpkgs-notifier/config.json" = { + enable = true; + text = '' + { + "configTime": 3600, + "configFetchTime": 1, + "localNotify": true, + "matrix": { + "enable": true, + "room": "!7j-78_02dHROeLj4Ns8F12eo4IiZGv4zNsQ_1-WlyIU", + "ping": true, + "userPing": "@notificationbot_0000", + "userPingServer": "matrix.org" + } + } + ''; + }; + }; }