working devShell!

This commit is contained in:
Charlie Root 2024-07-22 00:05:07 +02:00
commit 8e2371ddf6
11 changed files with 21 additions and 19 deletions

View file

@ -4,14 +4,16 @@
inputs.flake-parts.lib.mkFlake {inherit inputs;} (
{withSystem, ...}: {
systems = [
"x86-64_linux"
"x86_64-linux"
];
imports = [
inputs.treefmt-nix.flakeModule
#./flake/pre-commit
./flake/shell.nix
./flake/fmt.nix
# inputs.flake-parts.flakeModules.easyOverlay
# #./flake/pre-commit
./parts/shell.nix
./parts/fmt.nix
];
flake = {
nixosConfigurations = import ./hosts {inherit inputs withSystem;};
};

View file

@ -13,7 +13,7 @@ in {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/vali/repos/nichts";
flake = "/home/vali/projects/nichts";
};
};
}

View file

@ -51,4 +51,3 @@ in {
# extraConfig = ./kakrc;
};
}

View file

@ -1,4 +1,4 @@
_:{
_: {
programs.neovim-flake.settings.vim = {
assistant.copilot = {
enable = false;

View file

@ -1,4 +1,4 @@
_:{
_: {
programs.neovim-flake.settings.vim = {
autocomplete = {
enable = true;
@ -10,7 +10,6 @@ _:{
previous = "<C-p>";
scrollDocsDown = "<C-j>";
scrollDocsUp = "<C-k>";
};
};
};

View file

@ -1,4 +1,4 @@
_:{
_: {
programs.neovim-flake.settings.vim = {
binds = {
whichKey.enable = true;

View file

@ -8,6 +8,7 @@
formatter = config.treefmt.build.wrapper;
treefmt = {
projectRootFile = "flake.nix";
enableDefaultExcludes = true;
programs = {
alejandra.enable = true;

View file

@ -6,16 +6,17 @@
}: {
devShells.default = pkgs.mkShellNoCC {
name = "nichts";
shellHook = ''
${config.pre-commit.installationScript}
'';
DIRENV_LOG_FORMAT = "";
#inputsFrom = [config.treefmt.build.devShell];
packages = with pkgs; [
inputsFrom = [config.treefmt.build.devShell];
packages = [
config.treefmt.build.wrapper # treewide formatter
nil # nix language server
alejandra
git # take a guess
statix # no idea
deadnix # clean up unused nix code
pkgs.git # take a guess
(pkgs.writeShellApplication {
name = "update";