diff --git a/flake.lock b/flake.lock index 560bf1f..100224f 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,47 @@ { "nodes": { + "ags": { + "inputs": { + "astal": "astal", + "nixpkgs": [ + "ags-calendar", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1731966249, + "narHash": "sha256-9hDeMy6S2q1wWBFGiJic5yUms19zW8LhAX9MlCtuN6k=", + "owner": "aylur", + "repo": "ags", + "rev": "12e0bfefd2051c43d7450123fcb095f655b891e8", + "type": "github" + }, + "original": { + "owner": "aylur", + "repo": "ags", + "type": "github" + } + }, + "ags-calendar": { + "inputs": { + "ags": "ags", + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1732362088, + "narHash": "sha256-ORysoloxRrg5fkKLMp6DLj45SI5A5tmt3wRdmJU0v8E=", + "ref": "main", + "rev": "0f91ff34abd030b9a6b9e90dd50c97b40ea50a9a", + "revCount": 9, + "type": "git", + "url": "https://git.tigor.web.id/tigor/AGS" + }, + "original": { + "ref": "main", + "type": "git", + "url": "https://git.tigor.web.id/tigor/AGS" + } + }, "aquamarine": { "inputs": { "hyprutils": [ @@ -33,6 +75,28 @@ "type": "github" } }, + "astal": { + "inputs": { + "nixpkgs": [ + "ags-calendar", + "ags", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1731952585, + "narHash": "sha256-Sh1E7sJd8JJM3PCU1ZOei/QWz97OLCENIi2rTRoaniw=", + "owner": "aylur", + "repo": "astal", + "rev": "664c7a4ddfcf48c6e8accd3c33bb94424b0e8609", + "type": "github" + }, + "original": { + "owner": "aylur", + "repo": "astal", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -274,7 +338,7 @@ "hyprlang": "hyprlang", "hyprutils": "hyprutils", "hyprwayland-scanner": "hyprwayland-scanner", - "nixpkgs": "nixpkgs", + "nixpkgs": "nixpkgs_2", "pre-commit-hooks": "pre-commit-hooks", "systems": "systems", "xdph": "xdph" @@ -426,7 +490,7 @@ "git-hooks": "git-hooks", "hercules-ci-effects": "hercules-ci-effects", "neovim-src": "neovim-src", - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs_3" }, "locked": { "lastModified": 1729147490, @@ -495,15 +559,15 @@ }, "nixpkgs": { "locked": { - "lastModified": 1728888510, - "narHash": "sha256-nsNdSldaAyu6PE3YUA+YQLqUDJh+gRbBooMMekZJwvI=", - "owner": "NixOS", + "lastModified": 1732014248, + "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=", + "owner": "nixos", "repo": "nixpkgs", - "rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", + "rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", "type": "github" }, "original": { - "owner": "NixOS", + "owner": "nixos", "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" @@ -557,6 +621,22 @@ } }, "nixpkgs_2": { + "locked": { + "lastModified": 1728888510, + "narHash": "sha256-nsNdSldaAyu6PE3YUA+YQLqUDJh+gRbBooMMekZJwvI=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1728863046, "narHash": "sha256-DZBO2465PL5V89e8hFSJewyH4QbCPpW3ssws7ckT/0A=", @@ -572,7 +652,7 @@ "type": "github" } }, - "nixpkgs_3": { + "nixpkgs_4": { "locked": { "lastModified": 1729181673, "narHash": "sha256-LDiPhQ3l+fBjRATNtnuDZsBS7hqoBtPkKBkhpoBHv3I=", @@ -587,7 +667,7 @@ "type": "indirect" } }, - "nixpkgs_4": { + "nixpkgs_5": { "locked": { "lastModified": 1727348695, "narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=", @@ -644,13 +724,14 @@ }, "root": { "inputs": { + "ags-calendar": "ags-calendar", "home-manager": "home-manager", "hyprland": "hyprland", "hyprland-contrib": "hyprland-contrib", "neovim-nightly-overlay": "neovim-nightly-overlay", "nix-flatpak": "nix-flatpak", "nix-index-database": "nix-index-database", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_4", "nixpkgs-unstable": "nixpkgs-unstable", "nur": "nur", "rust-overlay": "rust-overlay", @@ -757,7 +838,7 @@ }, "zen-browser": { "inputs": { - "nixpkgs": "nixpkgs_4" + "nixpkgs": "nixpkgs_5" }, "locked": { "lastModified": 1727721329, diff --git a/flake.nix b/flake.nix index 009ced4..f27689f 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,7 @@ inputs = { zen-browser.url = "github:MarceColl/zen-browser-flake"; nur.url = "github:nix-community/NUR"; + ags-calendar.url = "git+https://git.tigor.web.id/tigor/AGS?ref=main"; neovim-nightly-overlay = { url = "github:nix-community/neovim-nightly-overlay"; }; @@ -73,6 +74,7 @@ nur.overlay rust-overlay.overlays.default (final: prev: { zen-browser = inputs.zen-browser.packages."${system}".default; }) + (final: prev: { ags-calendar = inputs.ags-calendar.packages."${system}".default; }) ]; } { diff --git a/home/modules/hyprland/eww.nix b/home/modules/hyprland/eww.nix index 7954935..78ce6e6 100644 --- a/home/modules/hyprland/eww.nix +++ b/home/modules/hyprland/eww.nix @@ -1,4 +1,5 @@ { + inputs, config, pkgs, lib, @@ -34,6 +35,7 @@ in eww ags bun + ags-calendar typescript (symlinkJoin { name = "gcalcli"; @@ -44,6 +46,8 @@ in }) ]; + wayland.windowManager.hyprland.settings.exec-once = [ "ags-calendar" ]; + home.file.".config/gcalcli/config.toml".source = (pkgs.formats.toml { }).generate "config.toml" { calendars = { default-calendars = [