Compare commits

..

4 commits

Author SHA1 Message Date
62369c45e8 flake.lock: Update
All checks were successful
/ test (push) Successful in 12m48s
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/e55f9a8678adc02024a4877c2a403e3f6daf24fe' (2024-09-03)
  → 'github:nix-community/disko/51994df8ba24d5db5459ccf17b6494643301ad28' (2024-09-20)
• Updated input 'dream2nix':
    'github:nix-community/dream2nix/3fd4c14d3683baac8d1f94286ae14fe160888b51' (2024-08-01)
  → 'github:nix-community/dream2nix/b76c529f377100516c40c5b6e239a4525fdcabe0' (2024-09-16)
• Updated input 'flakeParts':
    'github:hercules-ci/flake-parts/567b938d64d4b4112ee253b9274472dc3a346eb6' (2024-09-01)
  → 'github:hercules-ci/flake-parts/bcef6817a8b2aa20a5a6dbb19b43e63c5bf8619a' (2024-09-12)
• Updated input 'homeManager':
    'github:nix-community/home-manager/be47a2bdf278c57c2d05e747a13ed31cef54a037' (2024-09-09)
  → 'github:nix-community/home-manager/14929f7089268481d86b83ed31ffd88713dcd415' (2024-09-21)
• Updated input 'lix':
    'git+https://git@git.lix.systems/lix-project/lix?ref=refs/heads/main&rev=c14486ae8d3bbc862c625d948a6b2f4dc0927d5b' (2024-09-09)
  → 'git+https://git@git.lix.systems/lix-project/lix?ref=refs/heads/main&rev=5f298f74c92402a8390b01c736463b17b36277e3' (2024-09-21)
• Updated input 'lix-module':
    'git+https://git.lix.systems/lix-project/nixos-module?ref=refs/heads/main&rev=353b25f0b6da5ede15206d416345a2ec4195b5c8' (2024-09-08)
  → 'git+https://git.lix.systems/lix-project/nixos-module?ref=refs/heads/main&rev=b0e6f359500d66670cc16f521e4f62d6a0a4864e' (2024-09-18)
• Updated input 'lix-module/flake-utils':
    'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11)
  → 'github:numtide/flake-utils/c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a' (2024-09-17)
• Updated input 'nixDarwin':
    'github:LnL7/nix-darwin/76559183801030451e200c90a1627c1d82bb4910' (2024-09-06)
  → 'github:LnL7/nix-darwin/c03f85fa42d68d1056ca1740f3113b04f3addff2' (2024-09-19)
• Updated input 'nixosHardware':
    'github:NixOS/nixos-hardware/166dee4f88a7e3ba1b7a243edb1aca822f00680e' (2024-09-09)
  → 'github:NixOS/nixos-hardware/b493dfd4a8cf9552932179e56ff3b5819a9b8381' (2024-09-21)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/268bb5090a3c6ac5e1615b38542a868b52ef8088' (2024-09-19)
  → 'github:NixOS/nixpkgs/29768748c8e6ce4e9b1fba2b5a978576ece5b3a4' (2024-09-21)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/9fb342d14b69aefdf46187f6bb80a4a0d97007cd' (2024-09-02)
  → 'github:numtide/treefmt-nix/ee41a466c2255a3abe6bc50fc6be927cdee57a9f' (2024-09-19)
2024-09-21 14:57:13 +00:00
43a76ca3d7
Enable prometheus exporters on kirk
All checks were successful
/ test (push) Successful in 46s
2024-09-20 21:49:45 +02:00
e703451af2
Move LSP servers
All checks were successful
/ test (push) Successful in 36s
2024-09-20 21:27:14 +02:00
3ff06fa2bc
Add zk at home-manager level 2024-09-20 21:26:56 +02:00
6 changed files with 71 additions and 25 deletions

32
flake.lock generated
View file

@ -50,11 +50,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1726775926, "lastModified": 1726842196,
"narHash": "sha256-5zShvCy9S4tuISFjNSjb+TWpPtORqPbRZ0XwbLbPLho=", "narHash": "sha256-u9h03JQUuQJ607xmti9F9Eh6E96kKUAGP+aXWgwm70o=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "624fd86460e482017ed9c3c3c55a3758c06a4e7f", "rev": "51994df8ba24d5db5459ccf17b6494643301ad28",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -353,11 +353,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1726823634, "lastModified": 1726902823,
"narHash": "sha256-rU8Yy62KSLU8Q2J64F+50OJKORNdogxbXl2w4rFw13o=", "narHash": "sha256-Gkc7pwTVLKj4HSvRt8tXNvosl8RS9hrBAEhOjAE0Tt4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "4803bf558bdf20cb067aceb8830b7ad70113f4e3", "rev": "14929f7089268481d86b83ed31ffd88713dcd415",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -422,11 +422,11 @@
"lix": { "lix": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1726702585, "lastModified": 1726905313,
"narHash": "sha256-oBo2DRCazfJV/qUTgUGcS9s694sHNsIs5U09cOszeAc=", "narHash": "sha256-jsOyXonevsNaKxM9burYc2S4JVle+VMCJ8+AAp0MDCc=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "79246a37337c5df2224dbc2461c722e1e678f6de", "rev": "5f298f74c92402a8390b01c736463b17b36277e3",
"revCount": 16252, "revCount": 16254,
"type": "git", "type": "git",
"url": "https://git@git.lix.systems/lix-project/lix" "url": "https://git@git.lix.systems/lix-project/lix"
}, },
@ -571,11 +571,11 @@
}, },
"nixosHardware": { "nixosHardware": {
"locked": { "locked": {
"lastModified": 1726724509, "lastModified": 1726905744,
"narHash": "sha256-sVeAM1tgVi52S1e29fFBTPUAFSzgQwgLon3CrztXGm8=", "narHash": "sha256-xyNtG5C+xvfsnOVEamFe9zCCnuNwk93K/TlFC/4DmCI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "10d5e0ecc32984c1bf1a9a46586be3451c42fd94", "rev": "b493dfd4a8cf9552932179e56ff3b5819a9b8381",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -761,11 +761,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1726836432, "lastModified": 1726930246,
"narHash": "sha256-fk9P0RY2m7r3vAqqSRaR/MZoQJo6yg6vuv4h7D1I2/8=", "narHash": "sha256-BG4Qyero2a5DsfC4CDT5Jx9l7h4/N0/7JD0agHoBSGk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b3e9ef326d3d60dd97c262c6d16cc255175d4902", "rev": "29768748c8e6ce4e9b1fba2b5a978576ece5b3a4",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,4 +1,13 @@
{ pkgs, ... }:
{ {
home.packages = with pkgs; [
zk
nixd
terraform-ls
python3Packages.python-lsp-server
nodePackages.typescript-language-server
];
programs.helix = { programs.helix = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
@ -11,6 +20,7 @@
normal = "block"; normal = "block";
select = "underline"; select = "underline";
}; };
color-modes = true;
true-color = true; # to make colors coherent when in ssh true-color = true; # to make colors coherent when in ssh
# inline-diagnostic = { # inline-diagnostic = {
# cursor-line = "hint"; # cursor-line = "hint";
@ -23,6 +33,7 @@
{ {
name = "nix"; name = "nix";
language-servers = [ "nixd" ]; language-servers = [ "nixd" ];
formatter.command = "nixfmt";
} }
{ {
name = "markdown"; name = "markdown";
@ -35,10 +46,6 @@
]; ];
language-server = { language-server = {
nixd.command = "nixd"; nixd.command = "nixd";
vtsls = {
command = "vtsls";
args = [ "--stdio" ];
};
zk = { zk = {
command = "zk"; command = "zk";
args = [ "lsp" ]; args = [ "lsp" ];

View file

@ -254,12 +254,7 @@
"picard" "picard"
]) ])
[ [
nixd # TODO probably not the best place
terraform-lsp # TODO probably not best place
python3Packages.jedi-language-server # TODO probably not best place
nodePackages.typescript-language-server # TODO probably not best place
cntr # TODO probably not best place cntr # TODO probably not best place
nom # FIXME disable on aarch64-linux, breaks everything :(
] ]
); );
} }

42
hmModules/zk/default.nix Normal file
View file

@ -0,0 +1,42 @@
{
programs.bat.enable = true;
programs.fzf.enable = true;
programs.zk = {
enable = true;
settings = {
notebook.dir = "~/notebook";
note = {
language = "en";
default-title = "Untitled";
filename = "{{id}}";
extension = "md";
template = "default.md";
};
group.journal = {
paths = [ "journal" ];
note = {
filename = "{{format-date now}}";
template = "journal.md";
};
};
format.markdown = {
hashtags = false;
colon-tags = true;
multiword-tags = false;
};
tool = {
pager = "less -FIRX";
fzf-preview = "bat --color always {-1}";
};
lsp.diagnostics = {
wiki-title = "hint";
dead-link = "error";
};
lsp.completion = {
note-label = "{{title-or-path}}";
note-filter-text = "{{title}} {{path}}";
note-detail = "{{filename-stem}}";
};
};
};
}

View file

@ -33,6 +33,7 @@
"mount-rock5b" "mount-rock5b"
"adb" "adb"
"binfmt" "binfmt"
"prometheus-exporters"
] ]
++ [ ++ [
./disko.nix ./disko.nix

View file

@ -85,6 +85,7 @@
"calibre" "calibre"
"reinstall-magisk-on-lineage" "reinstall-magisk-on-lineage"
"vscode-server" "vscode-server"
"zk"
]; ];
extraGroups = [ ]; extraGroups = [ ];
backupPaths = [ ]; backupPaths = [ ];