added nix language server
removed ollama
This commit is contained in:
parent
1790d785f5
commit
77e3d687d4
|
@ -1,8 +1,16 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
../common
|
||||
];
|
||||
|
||||
nix = {
|
||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||
};
|
||||
|
||||
services = {
|
||||
# Enable CUPS to print documents.
|
||||
printing.enable = true;
|
||||
|
@ -51,6 +59,9 @@
|
|||
# helvetica font
|
||||
aileron
|
||||
|
||||
# nix langauge server
|
||||
nixd
|
||||
|
||||
cachefilesd
|
||||
|
||||
gnomeExtensions.dash-to-dock
|
||||
|
|
|
@ -46,10 +46,10 @@ in {
|
|||
);
|
||||
|
||||
services = {
|
||||
ollama = {
|
||||
enable = cfg.hasGPU;
|
||||
acceleration = "cuda";
|
||||
};
|
||||
# ollama = {
|
||||
# enable = cfg.hasGPU;
|
||||
# acceleration = "cuda";
|
||||
# };
|
||||
|
||||
# TODO: this should reference the home directory from the user config
|
||||
openssh.hostKeys = [
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
cfg = osConfig.nixos.users.leyla;
|
||||
|
|
|
@ -36,10 +36,18 @@ in {
|
|||
"cSpell.userWords" = [
|
||||
"webdav"
|
||||
];
|
||||
"nix.serverPath" = "nixd";
|
||||
"nix.enableLanguageServer" = true;
|
||||
"nixpkgs" = {
|
||||
"expr" = "import <nixpkgs> {}";
|
||||
};
|
||||
# "fomratting": {
|
||||
# "command": [ "alejandra" ];
|
||||
# };
|
||||
};
|
||||
|
||||
extensions = (
|
||||
with extensions.open-vsx;
|
||||
with open-vsx;
|
||||
[
|
||||
# vs code feel extensions
|
||||
ms-vscode.atom-keybindings
|
||||
|
@ -68,10 +76,10 @@ in {
|
|||
# misc extensions
|
||||
bungcip.better-toml
|
||||
|
||||
open-vsx."10nates".ollama-autocoder
|
||||
# lib.mkIf open-vsx."10nates".ollama-autocoder
|
||||
]
|
||||
++ (
|
||||
with extensions.vscode-marketplace; [
|
||||
with vscode-marketplace; [
|
||||
# js extensions
|
||||
karyfoundation.nearley
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue