refactor: complete overhaul

Complete overhaul of repo structure based on nvix.

See https://github.com/niksingh710/nvix

Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
Lander Van den Bulcke 2025-10-10 14:02:21 +02:00
parent ff2c59724a
commit 61feed4086
Signed by: lander
GPG key ID: 0142722B4B0C536F
75 changed files with 2916 additions and 2314 deletions

23
modules/flake/default.nix Normal file
View file

@ -0,0 +1,23 @@
{ inputs, self, ... }:
{
debug = true;
imports = [ ./devshell.nix ];
perSystem =
{ lib, system, ... }:
{
_module.args = {
flake = { inherit inputs self; };
pkgs = import inputs.nixpkgs {
inherit system;
overlays = lib.attrValues self.overlays;
config.allowUnfree = true;
};
};
imports = [
(self + /packages)
];
};
}

View file

@ -0,0 +1,32 @@
{ inputs, ... }:
{
imports = [
(inputs.git-hooks + /flake-module.nix)
];
perSystem =
{ config, pkgs, ... }:
{
devShells.default = pkgs.mkShell rec {
name = "nixvim";
meta.description = "Dev environment for nixvim configuration";
inputsFrom = [ config.pre-commit.devShell ];
packages = with pkgs; [
nil
nix-output-monitor
nixfmt-rfc-style
];
shellHook = ''
echo 1>&2 "🐼: $(id -un) | 🧬: $(nix eval --raw --impure --expr 'builtins.currentSystem') | 🐧: $(uname -r) "
echo 1>&2 "Ready to work on ${name}!"
'';
};
pre-commit.settings = {
hooks.nixfmt-rfc-style.enable = true;
};
};
}