This commit is contained in:
2026-05-01 15:04:27 -06:00
parent 50ac93c727
commit 3c40029892
6 changed files with 36 additions and 17 deletions

30
flake.lock generated
View File

@@ -161,11 +161,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1775087534, "lastModified": 1777678872,
"narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=", "narHash": "sha256-EPIFsulyon7Z1vLQq5Fk64GR8L7cQsT+IPhcsukVbgk=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b", "rev": "5250617bffd85403b14dbf43c3870e7f255d2c16",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -424,11 +424,11 @@
"nixpkgs-nixcord": "nixpkgs-nixcord" "nixpkgs-nixcord": "nixpkgs-nixcord"
}, },
"locked": { "locked": {
"lastModified": 1777125640, "lastModified": 1778257733,
"narHash": "sha256-jKmRu5PknoI0pk3WEqMhVReosUubUCq3M/izEQWzb+4=", "narHash": "sha256-FPKWRBfH2Zowz2Q+vRqL8GKNRZHaa6L450Ys2CQtLDQ=",
"owner": "KaylorBen", "owner": "KaylorBen",
"repo": "nixcord", "repo": "nixcord",
"rev": "0e738683dd7551a9cbfa343397b1592dfd785b7e", "rev": "1b1f027264ad08153b480d37f10007ee71048567",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -470,11 +470,11 @@
}, },
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"lastModified": 1774748309, "lastModified": 1777168982,
"narHash": "sha256-+U7gF3qxzwD5TZuANzZPeJTZRHS29OFQgkQ2kiTJBIQ=", "narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs.lib", "repo": "nixpkgs.lib",
"rev": "333c4e0545a6da976206c74db8773a1645b5870a", "rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -485,11 +485,11 @@
}, },
"nixpkgs-nixcord": { "nixpkgs-nixcord": {
"locked": { "locked": {
"lastModified": 1776734388, "lastModified": 1777428379,
"narHash": "sha256-vl3dkhlE5gzsItuHoEMVe+DlonsK+0836LIRDnm6MXQ=", "narHash": "sha256-ypxFOeDz+CqADEQNL72haqGjvZQdBR5Vc7pyx2JDttI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "10e7ad5bbcb421fe07e3a4ad53a634b0cd57ffac", "rev": "755f5aa91337890c432639c60b6064bb7fe67769",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -597,11 +597,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1776734388, "lastModified": 1777428379,
"narHash": "sha256-vl3dkhlE5gzsItuHoEMVe+DlonsK+0836LIRDnm6MXQ=", "narHash": "sha256-ypxFOeDz+CqADEQNL72haqGjvZQdBR5Vc7pyx2JDttI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "10e7ad5bbcb421fe07e3a4ad53a634b0cd57ffac", "rev": "755f5aa91337890c432639c60b6064bb7fe67769",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -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 ];
};
}

View File

@@ -62,6 +62,7 @@
syd/wgrep syd/wgrep
syd/nix syd/nix
syd/backup syd/backup
syd/flycheck
syd/agda syd/agda
syd/eshell syd/eshell
syd/treesit syd/treesit

View File

@@ -25,6 +25,7 @@
(defun syd-haskell-hoogle-start-server () (defun syd-haskell-hoogle-start-server ()
(interactive) (interactive)
(require 'haskell-hoogle)
(haskell-hoogle-start-server) (haskell-hoogle-start-server)
(browse-url-xdg-open (format "http://localhost:%d" (browse-url-xdg-open (format "http://localhost:%d"
haskell-hoogle-port-number)) haskell-hoogle-port-number))

View File

@@ -39,8 +39,12 @@
:select nil :size 0.42 :popup t :align bottom)) :select nil :size 0.42 :popup t :align bottom))
(defun syd-lsp-handle-docs () (defun syd-lsp-handle-docs ()
(interactive) (interactive)
(lsp-describe-thing-at-point) (save-excursion
(get-buffer "*lsp-help*")) (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 (syd-handle 'lsp-mode
:docs #'syd-lsp-handle-docs)) :docs #'syd-lsp-handle-docs))

View File

@@ -52,6 +52,7 @@
easyeffects.enable = on "sydpc"; easyeffects.enable = on "sydpc";
ryujinx.enable = on "sydpc"; ryujinx.enable = on "sydpc";
haskell.enable = true; haskell.enable = true;
kerbal-space-program.enable = on "sydpc";
sops = { sops = {
enable = true; enable = true;
keyFile = "/persist/private-keys/age/crumb"; keyFile = "/persist/private-keys/age/crumb";