Compare commits

..

4 commits

Author SHA1 Message Date
Bad
8356ba209f Add tailscale 2022-08-28 01:05:07 +02:00
Bad
a287f2d2e8 Clangd 2022-08-28 01:03:01 +02:00
Bad
b47f64dc27 Update flake.lock 2022-08-26 22:55:36 +02:00
Bad
87aeb4cfea Enable go-lsp 2022-08-26 22:55:16 +02:00
7 changed files with 66 additions and 20 deletions

View file

@ -42,11 +42,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1660649317, "lastModified": 1661154924,
"narHash": "sha256-16sWaj3cTZOQQgrmzlvBSRaBFKLrHJrfYh1k7/sSWok=", "narHash": "sha256-zwkShc4VZ9feLeIrWjdm6YkZBoobzXETF5xIIgi++Ec=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "80871c71edb3da76d40bdff9cae007a2a035c074", "rev": "5af1aa51f63d734284bf6728a21d2c9c31eb7492",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -169,11 +169,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1660890677, "lastModified": 1661149922,
"narHash": "sha256-Pjo7boTFANtflin0ESiwhFIrtCfss0z2DjEbKMjeFh8=", "narHash": "sha256-rvYJU7qdQUe82MaZoMVLyCcqQsITB4OK+TuYlT0xXDg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "dca822b67ddf0af52f9b63feaeefc1668c8635c0", "rev": "b30862cd69d405849e4b3e79972da551bf5620bb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -379,11 +379,11 @@
}, },
"latest": { "latest": {
"locked": { "locked": {
"lastModified": 1660819943, "lastModified": 1661088761,
"narHash": "sha256-TRZV/mlW1eYuojqDC3ueYWj7jsTKXJCtyMLNYX/Ybtw=", "narHash": "sha256-5DGKX81wIPAAiLwUmUYECpA3vop94AHHR7WmGXSsQok=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8ea014acc33da95ea56c902229957d8225005163", "rev": "a7855f2235a1876f97473a76151fec2afa02b287",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -415,11 +415,11 @@
}, },
"nixos": { "nixos": {
"locked": { "locked": {
"lastModified": 1660749083, "lastModified": 1661094678,
"narHash": "sha256-GHLFMGH+r3OmI4tV0x/RtxN7DkHcH2ZOhK8uzQeSLiY=", "narHash": "sha256-RtaVb6SqfrgCi20gdju1ogS3u1ocyLnhsgolazrCwL0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a55a7db823959cf509d55325201f1864af4574b9", "rev": "23534df34c1c499a6c82ce690df06d8c6e4e759d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -446,11 +446,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1660646295, "lastModified": 1660998696,
"narHash": "sha256-V4G+egGRc3elXPTr7QLJ7r7yrYed0areIKDiIAlMLC8=", "narHash": "sha256-N5eDv9THZz5pFn7NR1swaFrAJYByfrA5gU5L7JONItA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "762b003329510ea855b4097a37511eb19c7077f0", "rev": "13711c9ab9f5a160a44affb7a6221be53318a873",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -567,11 +567,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1660838778, "lastModified": 1661084493,
"narHash": "sha256-SpV0kKZ5b0+w6y15x7ZvBTjxOiAfqgyPq5SWpHDxoV4=", "narHash": "sha256-G/IElEE6eetQcLpESXCQtuYED/uTrsdeZj8fkqC3FSM=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "917bd68b37de4e60e7203061a0a9c23b74d2b5c2", "rev": "a670ff888437f4b6a3d24cc2996e9f969a87cbae",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -0,0 +1,3 @@
{ ... }: {
services.tailscale.enable = true;
}

View file

@ -1,7 +1,7 @@
{ profiles, ... }: { profiles, ... }:
with profiles; rec { with profiles; rec {
base = [ users.root core dnscrypt ]; base = [ users.root core dnscrypt ];
workstation = base ++ [ sway develop game profiles.workstation ssh flatpak torrents pwn tor rust virtualization java networkmanager pipewire flatpak peerix users.mae ]; workstation = base ++ [ sway develop game profiles.workstation ssh flatpak torrents pwn tor rust virtualization java networkmanager pipewire flatpak peerix tailscale users.mae ];
desktop = workstation ++ [ amd three_dee ]; desktop = workstation ++ [ amd three_dee ];
lap = workstation ++ [ laptop bluetooth print ]; lap = workstation ++ [ laptop bluetooth print ];
} }

View file

@ -0,0 +1,18 @@
{ lib, pkgs, config, ... }:
let
cfg = config.mae.nvim.clangd;
in
with lib;
{
options.mae.nvim.clangd.enable = lib.mkEnableOption "Enable C/C++ language support(with clangd) in neovim";
config = mkIf cfg.enable {
mae.nvim.lsp.servers.clangd = {
enable = true;
script = ''
{
cmd = { "${pkgs.clang-tools}/bin/clangd" },
}
'';
};
};
}

View file

@ -7,8 +7,10 @@ in
imports = [ imports = [
./nvim-lsp.nix ./nvim-lsp.nix
./js.nix ./js.nix
./go.nix
./rust.nix ./rust.nix
./nix.nix ./nix.nix
./clangd.nix
]; ];
options.mae.nvim = { options.mae.nvim = {
@ -30,6 +32,9 @@ in
vim-sleuth vim-sleuth
]; ];
extraPackages = with pkgs; [
nodePackages.prettier
];
extraConfig = '' extraConfig = ''
set background=dark set background=dark
set termguicolors set termguicolors

View file

@ -0,0 +1,19 @@
{ lib, pkgs, config, ... }:
let
cfg = config.mae.nvim.go;
in
with lib;
{
options.mae.nvim.go.enable = lib.mkEnableOption "Enable go language support in neovim";
config = mkIf cfg.enable {
mae.nvim.lsp.servers.gopls = {
enable = true;
script = ''
{
cmd = { "${pkgs.gopls}/bin/gopls" },
}
'';
};
};
}

View file

@ -7,7 +7,8 @@
js.deno.enable = true; js.deno.enable = true;
nix.enable = true; nix.enable = true;
rust.enable = true; rust.enable = true;
#clangd.enable = true; go.enable = true;
clangd.enable = true;
#python.enable = true; #python.enable = true;
}; };
} }