diff --git a/flake.lock b/flake.lock index b2964a2..7cbaa79 100644 --- a/flake.lock +++ b/flake.lock @@ -161,11 +161,11 @@ "nixpkgs-lib": "nixpkgs-lib" }, "locked": { - "lastModified": 1775087534, - "narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=", + "lastModified": 1777678872, + "narHash": "sha256-EPIFsulyon7Z1vLQq5Fk64GR8L7cQsT+IPhcsukVbgk=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b", + "rev": "5250617bffd85403b14dbf43c3870e7f255d2c16", "type": "github" }, "original": { @@ -424,11 +424,11 @@ "nixpkgs-nixcord": "nixpkgs-nixcord" }, "locked": { - "lastModified": 1777125640, - "narHash": "sha256-jKmRu5PknoI0pk3WEqMhVReosUubUCq3M/izEQWzb+4=", + "lastModified": 1778257733, + "narHash": "sha256-FPKWRBfH2Zowz2Q+vRqL8GKNRZHaa6L450Ys2CQtLDQ=", "owner": "KaylorBen", "repo": "nixcord", - "rev": "0e738683dd7551a9cbfa343397b1592dfd785b7e", + "rev": "1b1f027264ad08153b480d37f10007ee71048567", "type": "github" }, "original": { @@ -470,11 +470,11 @@ }, "nixpkgs-lib": { "locked": { - "lastModified": 1774748309, - "narHash": "sha256-+U7gF3qxzwD5TZuANzZPeJTZRHS29OFQgkQ2kiTJBIQ=", + "lastModified": 1777168982, + "narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=", "owner": "nix-community", "repo": "nixpkgs.lib", - "rev": "333c4e0545a6da976206c74db8773a1645b5870a", + "rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14", "type": "github" }, "original": { @@ -485,11 +485,11 @@ }, "nixpkgs-nixcord": { "locked": { - "lastModified": 1776734388, - "narHash": "sha256-vl3dkhlE5gzsItuHoEMVe+DlonsK+0836LIRDnm6MXQ=", + "lastModified": 1777428379, + "narHash": "sha256-ypxFOeDz+CqADEQNL72haqGjvZQdBR5Vc7pyx2JDttI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "10e7ad5bbcb421fe07e3a4ad53a634b0cd57ffac", + "rev": "755f5aa91337890c432639c60b6064bb7fe67769", "type": "github" }, "original": { @@ -597,11 +597,11 @@ }, "nixpkgs_5": { "locked": { - "lastModified": 1776734388, - "narHash": "sha256-vl3dkhlE5gzsItuHoEMVe+DlonsK+0836LIRDnm6MXQ=", + "lastModified": 1777428379, + "narHash": "sha256-ypxFOeDz+CqADEQNL72haqGjvZQdBR5Vc7pyx2JDttI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "10e7ad5bbcb421fe07e3a4ad53a634b0cd57ffac", + "rev": "755f5aa91337890c432639c60b6064bb7fe67769", "type": "github" }, "original": { diff --git a/modules/home/kerbal-space-program.nix b/modules/home/kerbal-space-program.nix new file mode 100644 index 0000000..d65b8b2 --- /dev/null +++ b/modules/home/kerbal-space-program.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, ... }: + +let cfg = config.sydnix.kerbal-space-program; +in { + options.sydnix.kerbal-space-program = { + enable = lib.mkEnableOption "KSPslop"; + }; + + config = lib.mkIf cfg.enable { + home.packages = [ pkgs.ckan ]; + }; +} diff --git a/modules/home/users/msyds/emacs/init.el b/modules/home/users/msyds/emacs/init.el index 43b19b3..987bc83 100755 --- a/modules/home/users/msyds/emacs/init.el +++ b/modules/home/users/msyds/emacs/init.el @@ -62,6 +62,7 @@ syd/wgrep syd/nix syd/backup + syd/flycheck syd/agda syd/eshell syd/treesit diff --git a/modules/home/users/msyds/emacs/lisp/syd/haskell.el b/modules/home/users/msyds/emacs/lisp/syd/haskell.el index 31dad4b..5752899 100644 --- a/modules/home/users/msyds/emacs/lisp/syd/haskell.el +++ b/modules/home/users/msyds/emacs/lisp/syd/haskell.el @@ -25,6 +25,7 @@ (defun syd-haskell-hoogle-start-server () (interactive) + (require 'haskell-hoogle) (haskell-hoogle-start-server) (browse-url-xdg-open (format "http://localhost:%d" haskell-hoogle-port-number)) diff --git a/modules/home/users/msyds/emacs/lisp/syd/lsp.el b/modules/home/users/msyds/emacs/lisp/syd/lsp.el index 0d8857f..aa143ee 100644 --- a/modules/home/users/msyds/emacs/lisp/syd/lsp.el +++ b/modules/home/users/msyds/emacs/lisp/syd/lsp.el @@ -39,8 +39,12 @@ :select nil :size 0.42 :popup t :align bottom)) (defun syd-lsp-handle-docs () (interactive) - (lsp-describe-thing-at-point) - (get-buffer "*lsp-help*")) + (save-excursion + (when evil-mode (forward-char)) ; evil-mode cope + (lsp-describe-thing-at-point)) + (with-current-buffer (get-buffer "*lsp-help*") + (and (not (string-empty-p (string-trim (buffer-string)))) + (current-buffer)))) (syd-handle 'lsp-mode :docs #'syd-lsp-handle-docs)) diff --git a/users/msyds/default.nix b/users/msyds/default.nix index bdd6695..6639afa 100644 --- a/users/msyds/default.nix +++ b/users/msyds/default.nix @@ -52,6 +52,7 @@ easyeffects.enable = on "sydpc"; ryujinx.enable = on "sydpc"; haskell.enable = true; + kerbal-space-program.enable = on "sydpc"; sops = { enable = true; keyFile = "/persist/private-keys/age/crumb";