From ba8ab1792064f2b5d5b6f25dd250e5f904bec55c Mon Sep 17 00:00:00 2001 From: Lucy Hochkamp Date: Sun, 12 Oct 2025 22:03:04 +0200 Subject: [PATCH] flake update --- flake.lock | 51 +++++++++++++++++++++++++++++------------ flake.nix | 3 +++ hm-modules/helix.nix | 9 ++++++++ modules/presets/cli.nix | 7 +++++- modules/presets/gui.nix | 2 +- 5 files changed, 55 insertions(+), 17 deletions(-) diff --git a/flake.lock b/flake.lock index 1dbc7944..744dbfc0 100644 --- a/flake.lock +++ b/flake.lock @@ -222,11 +222,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1759850138, - "narHash": "sha256-fYHIxjTvVIAEDWzenUROuzDPxy1rBCXZNPgh4b1dfgo=", + "lastModified": 1760323106, + "narHash": "sha256-HqVZwIwpDviDB1daJY/pPzkMKAC+dj5y0rDWEJbuKsE=", "owner": "helix-editor", "repo": "helix", - "rev": "5b0563419eeeaf0595c848865c46be4abad246a7", + "rev": "10c6a100c6e93b0dc175bf2f8b5a1afd66aebe2a", "type": "github" }, "original": { @@ -242,11 +242,11 @@ ] }, "locked": { - "lastModified": 1760103600, - "narHash": "sha256-R4cltQFceN3POiPhBu7aTKsrwqTiwo6zjzmitrHD80E=", + "lastModified": 1760312644, + "narHash": "sha256-U9SkK45314urw9P7MmjhEgiQwwD/BTj+T3HTuz1JU1Q=", "owner": "nix-community", "repo": "home-manager", - "rev": "bcccb01d0a353c028cc8cb3254cac7ebae32929e", + "rev": "e121f3773fa596ecaba5b22e518936a632d72a90", "type": "github" }, "original": { @@ -456,6 +456,26 @@ "url": "https://git.xyno.systems/xyno/nix-ci" } }, + "nix-index-database": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1760241904, + "narHash": "sha256-OD7QnaGEVNdukYEbJbUNWPsvnDrpbZOZxVIk6Pt9Jhw=", + "owner": "nix-community", + "repo": "nix-index-database", + "rev": "c9f5ea45f25652ec2f771f9426ccacb21cbbaeaa", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-index-database", + "type": "github" + } + }, "nixos-hardware": { "locked": { "lastModified": 1760106635, @@ -505,11 +525,11 @@ }, "nixpkgs-master": { "locked": { - "lastModified": 1760116522, - "narHash": "sha256-UlZbPVN6Ee3iBk5y4f2rTJke5w84vLF81ioB1QF+SxI=", + "lastModified": 1760353201, + "narHash": "sha256-lApR6u9s3ymKIAXofVPS+eo/y6HO8OrUp8Hl0S30tOE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "10ad44f66fdaededd60d6eb5af562e569cabb4e4", + "rev": "d559772cb55d806536aef3cf4ba3f7ce25fe4be9", "type": "github" }, "original": { @@ -625,6 +645,7 @@ "nheko": "nheko", "niri": "niri", "nix-ci": "nix-ci", + "nix-index-database": "nix-index-database", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "nixpkgs-master": "nixpkgs-master", @@ -746,11 +767,11 @@ ] }, "locked": { - "lastModified": 1759635238, - "narHash": "sha256-UvzKi02LMFP74csFfwLPAZ0mrE7k6EiYaKecplyX9Qk=", + "lastModified": 1760240450, + "narHash": "sha256-sa9bS9jSyc4vH0jSWrUsPGdqtMvDwmkLg971ntWOo2U=", "owner": "Mic92", "repo": "sops-nix", - "rev": "6e5a38e08a2c31ae687504196a230ae00ea95133", + "rev": "41fd1f7570c89f645ee0ada0be4e2d3c4b169549", "type": "github" }, "original": { @@ -881,11 +902,11 @@ ] }, "locked": { - "lastModified": 1759965431, - "narHash": "sha256-HvXr+rOkSZeseOYCruuMKMAUedcDkHOuYpFbnlIPs8Y=", + "lastModified": 1760329437, + "narHash": "sha256-TbTTbn2pr0urylodXUi0r9sUB/AjvaZuLclG4b0wLp8=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "391a133511ad7e09651b9c3939d8cf8d379766b1", + "rev": "df8f0729adfcb72b1e6bb2751f92dec0f54283c3", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index df8f2e4c..80f838ef 100644 --- a/flake.nix +++ b/flake.nix @@ -37,6 +37,9 @@ mtxclient.flake = false; nix-ci.url = "git+https://git.xyno.systems/xyno/nix-ci"; nix-ci.inputs.nixpkgs.follows = "nixpkgs"; + + nix-index-database.url = "github:nix-community/nix-index-database"; + nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; # helix helix.url = "github:helix-editor/helix"; diff --git a/hm-modules/helix.nix b/hm-modules/helix.nix index 5770f75b..8f9d99b8 100644 --- a/hm-modules/helix.nix +++ b/hm-modules/helix.nix @@ -22,6 +22,7 @@ in # nodePackages_latest.prettier dprint markdown-oxide + codebook ## python # ruff-lsp # nodePackages_latest.pyright @@ -142,6 +143,10 @@ in language-server.csharp = { command = "csharp-language-server"; }; + language-server.codebook = { + command = "codebook-lsp"; + args = ["serve"]; + }; language = flatten [ (map (x: { @@ -173,6 +178,10 @@ in "ruff" ]; } + { + name = "markdown"; + language-servers = ["codebook"]; + } { name = "c-sharp"; language-servers = [ "csharp" ]; diff --git a/modules/presets/cli.nix b/modules/presets/cli.nix index 2b7b7615..6d02384b 100644 --- a/modules/presets/cli.nix +++ b/modules/presets/cli.nix @@ -2,6 +2,7 @@ config, lib, pkgs, + inputs, ... }: let @@ -11,6 +12,11 @@ in options.xyno.presets.cli.enable = lib.mkEnableOption "enables xynos cli config with fish and helix and stuff"; config = lib.mkIf cfg.enable { + imports = [ + inputs.nix-index-database.nixosModules.nix-index + ]; + programs.nix-index-database.comma.enable = true; + home-manager.users.${config.xyno.system.user.name} = lib.mkIf config.xyno.presets.home-manager.enable ( @@ -117,7 +123,6 @@ in bottom curl croc - comma dig fd ffmpeg diff --git a/modules/presets/gui.nix b/modules/presets/gui.nix index a1f2f65d..81680433 100644 --- a/modules/presets/gui.nix +++ b/modules/presets/gui.nix @@ -41,7 +41,7 @@ in qt = { enable = true; style = "breeze"; - platformTheme = "gnome"; + # platformTheme = "gnome"; }; programs.yazi = {