Compare commits
4 commits
539646493a
...
8356ba209f
Author | SHA1 | Date | |
---|---|---|---|
|
8356ba209f | ||
|
a287f2d2e8 | ||
|
b47f64dc27 | ||
|
87aeb4cfea |
7 changed files with 66 additions and 20 deletions
36
flake.lock
36
flake.lock
|
@ -42,11 +42,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1660649317,
|
||||
"narHash": "sha256-16sWaj3cTZOQQgrmzlvBSRaBFKLrHJrfYh1k7/sSWok=",
|
||||
"lastModified": 1661154924,
|
||||
"narHash": "sha256-zwkShc4VZ9feLeIrWjdm6YkZBoobzXETF5xIIgi++Ec=",
|
||||
"owner": "LnL7",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "80871c71edb3da76d40bdff9cae007a2a035c074",
|
||||
"rev": "5af1aa51f63d734284bf6728a21d2c9c31eb7492",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -169,11 +169,11 @@
|
|||
"rust-analyzer-src": "rust-analyzer-src"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1660890677,
|
||||
"narHash": "sha256-Pjo7boTFANtflin0ESiwhFIrtCfss0z2DjEbKMjeFh8=",
|
||||
"lastModified": 1661149922,
|
||||
"narHash": "sha256-rvYJU7qdQUe82MaZoMVLyCcqQsITB4OK+TuYlT0xXDg=",
|
||||
"owner": "nix-community",
|
||||
"repo": "fenix",
|
||||
"rev": "dca822b67ddf0af52f9b63feaeefc1668c8635c0",
|
||||
"rev": "b30862cd69d405849e4b3e79972da551bf5620bb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -379,11 +379,11 @@
|
|||
},
|
||||
"latest": {
|
||||
"locked": {
|
||||
"lastModified": 1660819943,
|
||||
"narHash": "sha256-TRZV/mlW1eYuojqDC3ueYWj7jsTKXJCtyMLNYX/Ybtw=",
|
||||
"lastModified": 1661088761,
|
||||
"narHash": "sha256-5DGKX81wIPAAiLwUmUYECpA3vop94AHHR7WmGXSsQok=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8ea014acc33da95ea56c902229957d8225005163",
|
||||
"rev": "a7855f2235a1876f97473a76151fec2afa02b287",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -415,11 +415,11 @@
|
|||
},
|
||||
"nixos": {
|
||||
"locked": {
|
||||
"lastModified": 1660749083,
|
||||
"narHash": "sha256-GHLFMGH+r3OmI4tV0x/RtxN7DkHcH2ZOhK8uzQeSLiY=",
|
||||
"lastModified": 1661094678,
|
||||
"narHash": "sha256-RtaVb6SqfrgCi20gdju1ogS3u1ocyLnhsgolazrCwL0=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "a55a7db823959cf509d55325201f1864af4574b9",
|
||||
"rev": "23534df34c1c499a6c82ce690df06d8c6e4e759d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -446,11 +446,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1660646295,
|
||||
"narHash": "sha256-V4G+egGRc3elXPTr7QLJ7r7yrYed0areIKDiIAlMLC8=",
|
||||
"lastModified": 1660998696,
|
||||
"narHash": "sha256-N5eDv9THZz5pFn7NR1swaFrAJYByfrA5gU5L7JONItA=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "762b003329510ea855b4097a37511eb19c7077f0",
|
||||
"rev": "13711c9ab9f5a160a44affb7a6221be53318a873",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -567,11 +567,11 @@
|
|||
"rust-analyzer-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1660838778,
|
||||
"narHash": "sha256-SpV0kKZ5b0+w6y15x7ZvBTjxOiAfqgyPq5SWpHDxoV4=",
|
||||
"lastModified": 1661084493,
|
||||
"narHash": "sha256-G/IElEE6eetQcLpESXCQtuYED/uTrsdeZj8fkqC3FSM=",
|
||||
"owner": "rust-lang",
|
||||
"repo": "rust-analyzer",
|
||||
"rev": "917bd68b37de4e60e7203061a0a9c23b74d2b5c2",
|
||||
"rev": "a670ff888437f4b6a3d24cc2996e9f969a87cbae",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
3
profiles/tailscale/default.nix
Normal file
3
profiles/tailscale/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ ... }: {
|
||||
services.tailscale.enable = true;
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{ profiles, ... }:
|
||||
with profiles; rec {
|
||||
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 ];
|
||||
lap = workstation ++ [ laptop bluetooth print ];
|
||||
}
|
||||
|
|
18
users/modules/neovim/clangd.nix
Normal file
18
users/modules/neovim/clangd.nix
Normal 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" },
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -7,8 +7,10 @@ in
|
|||
imports = [
|
||||
./nvim-lsp.nix
|
||||
./js.nix
|
||||
./go.nix
|
||||
./rust.nix
|
||||
./nix.nix
|
||||
./clangd.nix
|
||||
];
|
||||
|
||||
options.mae.nvim = {
|
||||
|
@ -30,6 +32,9 @@ in
|
|||
vim-sleuth
|
||||
|
||||
];
|
||||
extraPackages = with pkgs; [
|
||||
nodePackages.prettier
|
||||
];
|
||||
extraConfig = ''
|
||||
set background=dark
|
||||
set termguicolors
|
||||
|
|
19
users/modules/neovim/go.nix
Normal file
19
users/modules/neovim/go.nix
Normal 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" },
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -7,7 +7,8 @@
|
|||
js.deno.enable = true;
|
||||
nix.enable = true;
|
||||
rust.enable = true;
|
||||
#clangd.enable = true;
|
||||
go.enable = true;
|
||||
clangd.enable = true;
|
||||
#python.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue