Compare commits

..

No commits in common. "f9c23515e330376f2ca90cb6a9f144ae8f7cd94f" and "42a76e8b1b64b30735c25914918c1a8dc3d51f24" have entirely different histories.

12 changed files with 361 additions and 461 deletions

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,6 @@
let
inherit (self) inputs outputs;
flakeLib = import ./lib;
neorgWorkspaces = [ "default" "general" "games" "btc" ];
@ -19,7 +18,7 @@
vars = rec {
name = "Patrick Neff";
username = "odie";
extraGroups = [ ];
extraGroups = [];
homeDirectory = "/home/${username}";
locale = "de_DE.UTF-8";
email = "odie86@gmail.com";
@ -32,7 +31,6 @@
domain = "odie.home.arpa";
neorg.workspaces = genNeorgWorkspaces "${homeDirectory}/Notes" neorgWorkspaces;
};
overlays = import ./overlays { inherit inputs; };
in
{
@ -57,7 +55,7 @@
inherit inputs nixpkgs outputs flakeLib overlays;
vars = vars // {
neorg.workspaces = genNeorgWorkspaces "/mnt/c/Users/odie/Sync/norg" neorgWorkspaces;
extraGroups = [ "minecraft" ];
extraGroups = ["minecraft"];
};
system = "x86_64-linux";
hostName = "wsl-dev";
@ -108,43 +106,36 @@
templates = {
empty = {
path = ./templates/empty;
description = "";
};
go = {
path = ./templates/go;
description = "";
};
rust = {
path = ./templates/rust;
description = "";
};
cpp = {
path = ./templates/cpp;
description = "";
};
};
}
// flake-utils.lib.eachDefaultSystem (system: { });
// flake-utils.lib.eachDefaultSystem (system: {
packages = {
neovim-ide = import ./pkgs/nixvim { inherit inputs system flakeLib nixpkgs vars overlays; };
};
});
inputs = {
# System
nixpkgs.url = "github:nixos/nixpkgs"; # Use master
#nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; # Use unstable
nur = {
url = "github:nix-community/NUR";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
};
};
nur.url = "github:nix-community/NUR";
nix-colors.url = "github:misterio77/nix-colors";
systems.url = "github:nix-systems/default";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-compat.url = "github:edolstra/flake-compat";
nixos-hardware.url = "github:nixos/nixos-hardware";
home-manager = {
url = "github:nix-community/home-manager";
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils = {
url = "github:numtide/flake-utils";
@ -152,65 +143,57 @@
};
nixos-wsl = {
url = "github:nix-community/NixOS-WSL";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
flake-compat.follows = "flake-compat";
};
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl = {
url = "github:nix-community/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
catppuccin.url = "github:catppuccin/nix";
# Neovim
nixvim = {
url = "github:nix-community/nixvim";
inputs = {
#nixpkgs.follows = "nixpkgs";
#home-manager.follows = "home-manager";
#flake-parts.follows = "flake-parts";
#flake-compat.follows = "flake-compat";
};
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs = {
#nixpkgs.follows = "nixpkgs";
#flake-parts.follows = "flake-parts";
#flake-compat.follows = "flake-compat";
};
inputs.nixpkgs.follows = "nixpkgs";
};
nvim-spell-de-utf8-dictionary = {
url = "https://ftp.uni-bayreuth.de/packages/editors/vim/runtime/spell/de.utf-8.spl";
url = "http://ftp.vim.org/vim/runtime/spell/de.utf-8.spl";
flake = false;
};
nvim-spell-de-utf8-suggestions = {
url = "https://ftp.uni-bayreuth.de/packages/editors/vim/runtime/spell/de.utf-8.sug";
url = "http://ftp.vim.org/vim/runtime/spell/de.utf-8.sug";
flake = false;
};
nvim-spell-de-latin1-dictionary = {
url = "https://ftp.uni-bayreuth.de/packages/editors/vim/runtime/spell/de.latin1.spl";
url = "http://ftp.vim.org/vim/runtime/spell/de.latin1.spl";
flake = false;
};
nvim-spell-de-latin1-suggestions = {
url = "https://ftp.uni-bayreuth.de/packages/editors/vim/runtime/spell/de.latin1.sug";
url = "http://ftp.vim.org/vim/runtime/spell/de.latin1.sug";
flake = false;
};
guihua = {
url = "github:ray-x/guihua.lua";
flake = false;
};
vim-mcfunction = {
url = "github:RubixTheSlime/vim-mcfunction";
flake = false;
};
neorg-overlay = {
/*
neorg-overlay = {
url = "github:nvim-neorg/nixpkgs-neorg-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
};
*/
lazydev = {
url = "github:folke/lazydev.nvim";
@ -221,22 +204,8 @@
flake = false;
};
norg = {
url = "github:nvim-neorg/tree-sitter-norg/dev";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
flake-compat.follows = "flake-compat";
};
};
norg-meta = {
url = "github:nvim-neorg/tree-sitter-norg-meta";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
flake-compat.follows = "flake-compat";
};
};
norg.url = "github:nvim-neorg/tree-sitter-norg/dev";
norg-meta.url = "github:nvim-neorg/tree-sitter-norg-meta";
neorg = {
url = "github:nvim-neorg/neorg";
flake = false;
@ -245,23 +214,16 @@
url = "github:nvim-neorg/neorg-telescope";
flake = false;
};
vim-mcfunction = {
url = "github:CrystalAlpha358/vim-mcfunction";
flake = false;
};
# Games
nix-minecraft = {
url = "github:Infinidoge/nix-minecraft";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
flake-compat.follows = "flake-compat";
};
};
minecraft-server-flake = {
#url = "git+ssh://git@git.gaja-group.com/gaja-group/minecraft-server-flake.git";
url = "git+file:///home/odie/Code/nix/minecraft-server-flake";
url = "git+ssh://git@git.gaja-group.com/gaja-group/minecraft-server-flake.git";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";

View File

@ -24,9 +24,6 @@
gdu
jq
python3Packages.argcomplete
zip
unzip
p7zip
];
programs = {

View File

@ -9,7 +9,6 @@
automatic = true;
};
settings = {
trusted-users = [ "root" "@wheel" ];
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};

View File

@ -1,68 +1,30 @@
{ inputs, ... }:
let
whitelist = {
masterodie = "c0e67091-d6d0-4cf2-89d5-d0c6f2bd4f30";
Rooomi = "5c5b4a28-e292-46fa-bf92-3b21f577c30e";
};
operators = {
masterodie = {
uuid = whitelist.masterodie;
level = 4;
bypassesPlayerLimit = true;
};
};
in
{
{ inputs, ... }: {
imports = [
inputs.minecraft-server-flake.nixosModules.minecraft-servers
];
services.minecraft-servers = {
velocitySecret = "01KqxtMy3kEH";
openFirewall = true;
domain = "odie.home.arpa";
servers = {
vanilla-plus = {
inherit whitelist operators;
enable = true;
autoStart = false;
openFirewall = true;
serverProperties = {
online-mode = false;
enforce-secure-profile = true;
};
};
flat = {
inherit whitelist operators;
enable = true;
autoStart = false;
serverProperties = {
online-mode = false;
enforce-secure-profile = true;
};
};
velocity.enable = true;
vanilla-plus.enable = true;
flat.enable = true;
};
extraOptions = {
flat = {
memory = "2G";
port = 25567;
mapPort = 8101;
voicePort = 24455;
blacklist = [ "Discord" "bluemap" "bmm-fabric" ];
whitelist = [ "worldedit" ];
whitelist = {
masterodie = "c0e67091-d6d0-4cf2-89d5-d0c6f2bd4f30";
Rooomi = "5c5b4a28-e292-46fa-bf92-3b21f577c30e";
};
};
vanilla-plus = {
memory = "2G";
port = 25566;
mapPort = 8100;
voicePort = 24454;
blacklist = [ "Discord" "bluemap" "bmm-fabric" ];
whitelist = [ "worldedit" ];
};
velocity = {
port = 25565;
mapPort = 8100;
voicePort = 24454;
whitelist = {
masterodie = "c0e67091-d6d0-4cf2-89d5-d0c6f2bd4f30";
Rooomi = "5c5b4a28-e292-46fa-bf92-3b21f577c30e";
};
};
};
};

View File

@ -9,7 +9,7 @@
model = "gemma2:2b";
temperature = 0;
max_tokens = 4096;
api_key_name = "";
local = true;
parse_curl_args = lib.nixvim.mkRaw ''
function(opts, code_opts)
return {

View File

@ -33,7 +33,7 @@
zen-mode.enable = true;
web-devicons.enable = true;
lazygit.enable = true;
colorizer.enable = true;
nvim-colorizer.enable = true;
headlines.enable = true;
cmake-tools = {

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{
imports = [
./emmet.nix
./go.nix
@ -15,16 +15,12 @@
jsonls.enable = true;
lua_ls.enable = true;
phpactor.enable = true;
ruff.enable = true;
ruff_lsp.enable = true;
pyright.enable = true;
sqls.enable = true;
tailwindcss.enable = true;
templ.enable = true;
ts_ls.enable = true;
yamlls.enable = true;
spyglassmc_language_server = {
enable = true;
package = pkgs.callPackage ../../../../../pkgs/spyglass {};
};
};
}

View File

@ -1,8 +1,7 @@
{ vars, lib, ... }: {
plugins.neorg = {
enable = true;
telescopeIntegration.enable = true;
settings.load = {
modules = {
"core.defaults" = lib.nixvim.emptyTable;
"core.dirman" = {
config = {

View File

@ -1,4 +1,4 @@
{ pkgs, config, ... }: {
_: {
plugins = {
treesitter = {
enable = true;
@ -8,8 +8,6 @@
};
folding = true;
nixGrammars = true;
grammarPackages = config.plugins.treesitter.package.passthru.allGrammars;
nixvimInjections = true;
};
treesitter-context.enable = true;
ts-autotag.enable = true;

View File

@ -1,9 +1,8 @@
{ inputs, ... }: [
#(import ./neorg.nix { inherit inputs; })
(import ./neorg.nix { inherit inputs; })
(import ./kodi.nix { })
inputs.neovim-nightly-overlay.overlays.default
inputs.neorg-overlay.overlays.default
inputs.nixvim.overlays.default
inputs.nur.overlays.default
inputs.nur.overlay
inputs.nixgl.overlay
]

View File

@ -22,7 +22,7 @@
services = {
postgresql.enable = true;
open-webui = {
enable = false;
enable = true;
host = "0.0.0.0";
environment = {
OLLAMA_API_BASE_URL = "http://10.0.20.10:11434";