mirror of
https://github.com/MagicBOTAlex/nixos-server.git
synced 2026-05-06 10:02:30 +02:00
sync
This commit is contained in:
parent
38d26110e1
commit
f2bb1de7d8
15 changed files with 505 additions and 87 deletions
33
modules/customPackages/wgmesh/default.nix
Normal file
33
modules/customPackages/wgmesh/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ pkgs, lib, fetchFromGitHub, wireguard-tools, makeWrapper, stdenv, ... }:
|
||||
let
|
||||
version = "1.1";
|
||||
wgmesh-unwrapped = pkgs.buildGoModule rec {
|
||||
name = "wgmesh-unwrapped";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Dan-J-D";
|
||||
repo = "wgmesh";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-7CXTyvCD4ywRZE0xTc3BbU6Ze72KQ2Q25qHl3LjBO28=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-JGaaQ+y+hbO5eBm51Wxj8u8AMdfXN9pKWIdYxPr2Ix8=";
|
||||
|
||||
meta.mainProgram = "wgmesh";
|
||||
};
|
||||
|
||||
binPath = lib.makeBinPath [ wireguard-tools ];
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "wgmesh";
|
||||
inherit version;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildCommand = ''
|
||||
makeWrapper ${lib.getExe wgmesh-unwrapped} $out/bin/${name} \
|
||||
--suffix-each PATH ':' "${binPath}"
|
||||
'';
|
||||
|
||||
meta.mainProgram = "wgmesh";
|
||||
}
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
{pkgs, ...} : {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.fish.enable = true;
|
||||
documentation.man.generateCaches = false;
|
||||
|
||||
users.users."botserver".shell = pkgs.fish;
|
||||
users.users.root.shell = pkgs.fish;
|
||||
}
|
||||
|
|
|
|||
12
modules/nfs.nix
Normal file
12
modules/nfs.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
fileSystems."/export/mafuyu" = {
|
||||
device = "/kube-store";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
|
||||
services.nfs.server.enable = true;
|
||||
services.nfs.server.exports = ''
|
||||
/export 10.0.0.0/42(rw,fsid=0,no_subtree_check)
|
||||
'';
|
||||
}
|
||||
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
let
|
||||
|
|
@ -19,6 +24,7 @@ let
|
|||
zstd
|
||||
glib
|
||||
libcxx
|
||||
lua
|
||||
];
|
||||
|
||||
makePkgConfigPath = x: makeSearchPathOutput "dev" "lib/pkgconfig" x;
|
||||
|
|
@ -51,17 +57,21 @@ let
|
|||
"NIX_LD_LIBRARY_PATH=${config.home.profileDirectory}/lib/nvim-depends/lib"
|
||||
"PKG_CONFIG_PATH=${config.home.profileDirectory}/lib/nvim-depends/pkgconfig"
|
||||
];
|
||||
in {
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
patchelf
|
||||
nvim-depends-include
|
||||
nvim-depends-library
|
||||
nvim-depends-pkgconfig
|
||||
ripgrep
|
||||
lua
|
||||
];
|
||||
home.extraOutputsToInstall = [ "nvim-depends" ];
|
||||
home.shellAliases.nvim = (concatStringsSep " " buildEnv)
|
||||
+ " SQLITE_CLIB_PATH=${pkgs.sqlite.out}/lib/libsqlite3.so " + "nvim";
|
||||
home.shellAliases.nvim =
|
||||
(concatStringsSep " " buildEnv)
|
||||
+ " SQLITE_CLIB_PATH=${pkgs.sqlite.out}/lib/libsqlite3.so "
|
||||
+ "nvim";
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
|
|
@ -84,6 +94,8 @@ in {
|
|||
yarn
|
||||
texlivePackages.latex
|
||||
tree-sitter
|
||||
luarocks
|
||||
lua
|
||||
];
|
||||
|
||||
extraLuaPackages = ls: with ls; [ luarocks ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue